[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

(no description)

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

Defines 1 class

ColorChannels:: (9 methods):
  getFunctions()
  hue()
  saturation()
  lightness()
  red()
  green()
  blue()
  alpha()
  luma()


Class: ColorChannels  - X-Ref

Implementation of the Color Channel functions for LESS

getFunctions()   X-Ref
No description

hue(array $color)   X-Ref
Extracts the hue channel of a color object in the HSL color space

link: https://lesscss.org/functions/#color-channel-hue

saturation(array $color)   X-Ref
Extracts the saturation channel of a color object in the HSL color space

link: https://lesscss.org/functions/#color-channel-saturation

lightness(array $color)   X-Ref
Extracts the lightness channel of a color object in the HSL color space

link: https://lesscss.org/functions/#color-channel-lightness

red($color)   X-Ref


green($color)   X-Ref


blue($color)   X-Ref


alpha(array $value)   X-Ref
Extracts the alpha channel of a color object

defaults to 1 for colors without an alpha
link: https://lesscss.org/functions/#color-channel-alpha

luma(array $color)   X-Ref
Calculates the luma (perceptual brightness) of a color object

link: https://lesscss.org/functions/#color-channel-luma