1 | <?php |
||
5 | class hsb implements \projectcleverweb\color\interfaces\converter { |
||
6 | use \projectcleverweb\color\traits\converter; |
||
7 | |||
8 | protected static $valid_keys = array( |
||
9 | 'h', |
||
10 | 's', |
||
11 | 'b' |
||
12 | ); |
||
13 | |||
14 | protected static $default_value = array( |
||
15 | 'h' => 0, |
||
16 | 's' => 0, |
||
17 | 'b' => 0 |
||
18 | ); |
||
19 | |||
20 | public static function to_rgb($input) :array { |
||
36 | |||
37 | public static function to_hex($input) :string { |
||
40 | |||
41 | public static function to_cmyk($input) :array { |
||
44 | |||
45 | public static function to_hsl($input) :array { |
||
48 | |||
49 | public static function to_hsb($input) :array { |
||
52 | } |
||
53 |