[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/splitbrain/lesserphp/src/Functions/ -> ColorOperation.php (summary)

(no description)

File Size: 315 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ColorOperation:: (14 methods):
  getFunctions()
  saturate()
  desaturate()
  lighten()
  darken()
  fadein()
  fadeout()
  fade()
  spin()
  mix()
  tint()
  shade()
  contrast()
  colorArgs()


Class: ColorOperation  - X-Ref

Implements the Color Operation functions for LESS

getFunctions()   X-Ref
No description

saturate(array $args)   X-Ref
Increase the saturation of a color in the HSL color space by an absolute amount

link: https://lesscss.org/functions/#color-operations-saturate

desaturate(array $args)   X-Ref
Decrease the saturation of a color in the HSL color space by an absolute amount

link: https://lesscss.org/functions/#color-operations-desaturate

lighten(array $args)   X-Ref
Increase the lightness of a color in the HSL color space by an absolute amount

link: https://lesscss.org/functions/#color-operations-lighten

darken(array $args)   X-Ref
Decrease the lightness of a color in the HSL color space by an absolute amount

link: https://lesscss.org/functions/#color-operations-darken

fadein(array $args)   X-Ref
Decrease the transparency (or increase the opacity) of a color, making it more opaque

link: https://lesscss.org/functions/#color-operations-fadein

fadeout(array $args)   X-Ref
Increase the transparency (or decrease the opacity) of a color, making it less opaque

link: https://lesscss.org/functions/#color-operations-fadeout

fade(array $args)   X-Ref
Set the absolute opacity of a color.
Can be applied to colors whether they already have an opacity value or not.

link: https://lesscss.org/functions/#color-operations-fade

spin(array $args)   X-Ref
Rotate the hue angle of a color in either direction

link: https://lesscss.org/functions/#color-operations-spin

mix(array $args)   X-Ref
mixes two colors by weight
mix(@color1, @color2, [@weight: 50%]);

link: https://lesscss.org/functions/#color-operations-mix

tint(array $args)   X-Ref
Mix color with white in variable proportion.

It is the same as calling `mix(#ffffff, @color, @weight)`.

tint(@color, [@weight: 50%]);

return: array Color
link: https://lesscss.org/functions/#color-operations-tint

shade(array $args)   X-Ref
Mix color with black in variable proportion.

It is the same as calling `mix(#000000, @color, @weight)`

shade(@color, [@weight: 50%]);

return: array Color
link: http://lesscss.org/functions/#color-operations-shade

contrast(array $args)   X-Ref
Choose which of two colors provides the greatest contrast with another

link: https://lesscss.org/functions/#color-operations-contrast

colorArgs(array $args)   X-Ref
Helper function to get arguments for color manipulation functions.
takes a list that contains a color like thing and a percentage