Module functions

Index

Functions

Functions

alpha(color: Color): Dimension

Parameters

Returns

Dimension

argb(color: Color): Anonymous

Parameters

Returns

Anonymous

average(color1: Color, color2: Color): Color

Parameters

Returns

Color

blue(color: Color): Dimension

Parameters

Returns

Dimension

ceil(n: number): number

Parameters

  • n: number

Returns

number

ceil(n: Dimension): Dimension

Parameters

Returns

Dimension

color(n: Quoted): Color

Parameters

Returns

Color

contrast(color: Color, dark?: Color, light?: Color, threshold?: IValuableNumber): Color

Parameters

Returns

Color

contrast(color: Color, dark?: Color, light?: Color, threshold?: number): Color

Parameters

  • color: Color
  • dark?: Color optional
  • light?: Color optional
  • threshold?: number optional

Returns

Color

darken(color: Color, amount: IValuableNumber): Color

Parameters

Returns

Color

desaturate(color: Color, amount: IValuableNumber): Color

Parameters

Returns

Color

difference(color1: Color, color2: Color): Color

Parameters

Returns

Color

e(str: string): Anonymous

Parameters

  • str: string

Returns

Anonymous

e(str: JavaScript): Anonymous

Parameters

Returns

Anonymous

escape(str: IValuableString): Anonymous

Parameters

Returns

Anonymous

exclusion(color1: Color, color2: Color): Color

Parameters

Returns

Color

fade(color: Color, amount: IValuableNumber): Color

Parameters

Returns

Color

fadein(color: Color, amount: IValuableNumber): Color

Parameters

Returns

Color

fadeout(color: Color, amount: IValuableNumber): Color

Parameters

Returns

Color

floor(n: number): number

Parameters

  • n: number

Returns

number

floor(n: Dimension): Dimension

Parameters

Returns

Dimension

green(color: Color): Dimension

Parameters

Returns

Dimension

greyscale(color: Color): Color

Parameters

Returns

Color

hardlight(color1: Color, color2: Color): Color

Parameters

Returns

Color

hsl(h: number, s?: number, l?: number): Color

Parameters

  • h: number
  • s?: number optional
  • l?: number optional

Returns

Color

hsla(h: number, s?: number, l?: number, a?: number): Color

Parameters

  • h: number
  • s?: number optional
  • l?: number optional
  • a?: number optional

Returns

Color

hsv(h: number, s: number, v: number): Color

Parameters

  • h: number
  • s: number
  • v: number

Returns

Color

hsva(h: number, s: number, v: number, a: number): Color

Parameters

  • h: number
  • s: number
  • v: number
  • a: number

Returns

Color

hue(color: Color): Dimension

Parameters

Returns

Dimension

iscolor(n: any): Keyword

Parameters

  • n: any

Returns

Keyword

isem(n: any): Keyword

Parameters

  • n: any

Returns

Keyword

iskeyword(n: any): Keyword

Parameters

  • n: any

Returns

Keyword

isnumber(n: any): Keyword

Parameters

  • n: any

Returns

Keyword

ispercentage(n: any): Keyword

Parameters

  • n: any

Returns

Keyword

ispixel(n: any): Keyword

Parameters

  • n: any

Returns

Keyword

isstring(n: any): Keyword

Parameters

  • n: any

Returns

Keyword

isurl(n: any): Keyword

Parameters

  • n: any

Returns

Keyword

lighten(color: Color, amount: IValuableNumber): Color

Parameters

Returns

Color

lightness(color: Color): Dimension

Parameters

Returns

Dimension

luma(color: Color): Dimension

Parameters

Returns

Dimension

mix(color1: Color, color2: Color, weight: Dimension): Color

Parameters

Returns

Color

multiply(color1: Color, color2: Color): Color

Parameters

Returns

Color

negation(color1: Color, color2: Color): Color

Parameters

Returns

Color

overlay(color1: Color, color2: Color): Color

Parameters

Returns

Color

percentage(n: IValuableNumber): Dimension

Parameters

Returns

Dimension

red(color: Color): Dimension

Parameters

Returns

Dimension

rgb(r: number, g: number, b: number): Color

Parameters

  • r: number
  • g: number
  • b: number

Returns

Color

rgba(r: number, g: number, b: number, a: number): Color

Parameters

  • r: number
  • g: number
  • b: number
  • a: number

Returns

Color

round(n: Dimension, f?: IValuableNumber): Dimension

Parameters

Returns

Dimension

round(n: number, f?: IValuableNumber): number

Parameters

Returns

number

saturate(color: Color, amount: IValuableNumber): Color

Parameters

Returns

Color

saturation(color: Color): Dimension

Parameters

Returns

Dimension

screen(color1: Color, color2: Color): Color

Parameters

Returns

Color

shade(color: Color, amount: Dimension): Color

Parameters

Returns

Color

softlight(color1: Color, color2: Color): Color

Parameters

Returns

Color

spin(color: Color, amount: IValuableNumber): Color

Parameters

Returns

Color

tint(color: Color, amount: Dimension): Color

Parameters

Returns

Color

unit(val: IValuableNumber, unit?: ICSSable): Dimension

Parameters

Returns

Dimension