Exemplo n.º 1
0
function color_is_color_hue_range($color, $range)
{
    return Color::isColorHueRange(color_get($color), $range);
}
Exemplo n.º 2
0
 public static function filterByHueRange(PaletteInterface $palette, $hueRange)
 {
     return self::filter($palette, function (ColorInterface $color) use($hueRange) {
         return Color::isColorHueRange($color, $hueRange);
     });
 }