WordPress at Your Fingertips
function is not described

wp_tinycolor_rgb_to_rgb() WP 5.8.0

Round and convert values of an RGB object.

Direct port of TinyColor's function, lightly simplified to maintain consistency with TinyColor.

No Hooks.

Return

Array. Rounded and converted RGB object.

Usage

wp_tinycolor_rgb_to_rgb( $rgb_color );
$rgb_color(array) (required)
RGB object.

Notes

Changelog

Since 5.8.0 Introduced.

Code of wp_tinycolor_rgb_to_rgb() WP 5.8.1

function wp_tinycolor_rgb_to_rgb( $rgb_color ) {
	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,
	);
}