Lines:
1 to 49 of 49
<?php /* class Jetpack_Color */ /* function Jetpack_Color::__construct() – Initialize object */ /* function Jetpack_Color::fromHex() – Init color from hex value */ /* function Jetpack_Color::fromRgbInt() – Init color from integer RGB values */ /* function Jetpack_Color::fromRgbHex() – Init color from hex RGB values */ /* function Jetpack_Color::fromHsl() – Converts an HSL color value to RGB. Conversion formula adapted from https://en.wikipedia.org/wiki/HSL_color_space. */ /* function Jetpack_Color::hue2rgb() – Helper function for Jetpack_Color::fromHsl() */ /* function Jetpack_Color::fromInt() – Init color from integer value */ /* function Jetpack_Color::toHex() – Convert color to hex */ /* function Jetpack_Color::toRgbInt() – Convert color to RGB array (integer values) */ /* function Jetpack_Color::toRgbHex() – Convert color to RGB array (hex values) */ /* function Jetpack_Color::toHsvFloat() – Get Hue/Saturation/Value for the current color (float values, slow but accurate) */ /* function Jetpack_Color::toHsvInt() – Get HSV values for color (integer values from 0-255, fast but less accurate) */ /* function Jetpack_Color::toHsl() – Converts an RGB color value to HSL. Conversion formula adapted from https://en.wikipedia.org/wiki/HSL_color_space. */ /* function Jetpack_Color::toCSS() – */ /* function Jetpack_Color::toXyz() – Get current color in XYZ format */ /* function Jetpack_Color::toLabCie() – Get color CIE-Lab values */ /* function Jetpack_Color::toInt() – Convert color to integer */ /* function Jetpack_Color::__toString() – Alias of toString() */ /* function Jetpack_Color::toString() – Get color as string */ /* function Jetpack_Color::getDistanceRgbFrom() – Get the distance between this color and the given color */ /* function Jetpack_Color::getDistanceLabFrom() – Get distance from the given color using the Delta E method */ /* function Jetpack_Color::toLuminosity() – */ /* function Jetpack_Color::getDistanceLuminosityFrom() – Get distance between colors using luminance. */ /* function Jetpack_Color::getMaxContrastColor() – */ /* function Jetpack_Color::getGrayscaleContrastingColor() – */ /* function Jetpack_Color::getReadableContrastingColor() – Gets a readable contrasting color. $this is assumed to be the text and $color the background color. */ /* function Jetpack_Color::isGrayscale() – Detect if color is grayscale */ /* function Jetpack_Color::getClosestMatch() – Get the closest matching color from the given array of colors */ /* function Jetpack_Color::darken() – */ /* function Jetpack_Color::lighten() – */ /* function Jetpack_Color::incrementLightness() – */ /* function Jetpack_Color::saturate() – */ /* function Jetpack_Color::desaturate() – */ /* function Jetpack_Color::incrementSaturation() – */ /* function Jetpack_Color::toGrayscale() – */ /* function Jetpack_Color::getComplement() – */ /* function Jetpack_Color::getSplitComplement() – */ /* function Jetpack_Color::getAnalog() – */ /* function Jetpack_Color::getTetrad() – */ /* function Jetpack_Color::getTriad() – */ /* function Jetpack_Color::incrementHue() – */