wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
wp_tinycolor_rgb_to_rgb is private and should not be used in themes or plugins directly.
wp_tinycolor_rgb_to_rgb › WordPress Function
Da5.8.0
Deprecato6.3.0
› wp_tinycolor_rgb_to_rgb ( $rgb_color )
| Accedi: |
|
| Parametri: |
|
| Links: | |
| Ritorna: |
|
| Definito a: |
|
| Codex: |
Rounds and converts values of an RGB object.
Direct port of TinyColor's function, lightly simplified to maintain consistency with TinyColor.Sorgenti
function wp_tinycolor_rgb_to_rgb( $rgb_color ) {
_deprecated_function( __FUNCTION__, '6.3.0' );
return array(
'r' => wp_tinycolor_bound01( $rgb_color['r'], 255 ) * 255,
'g' => wp_tinycolor_bound01( $rgb_color['g'], 255 ) * 255,
'b' => wp_tinycolor_bound01( $rgb_color['b'], 255 ) * 255,
);
}