W3cubDocs

/WordPress

WP_Duotone::colord_hsla_to_rgba( array $hsla ): array

Converts an HSLA array to RGBA.

Description

Direct port of colord’s hslaToRgba function.

Parameters

$hslaarrayrequired
The HSLA array to convert.

Return

array The RGBA array.

Source

private static function colord_hsla_to_rgba( $hsla ) {
	return self::colord_hsva_to_rgba( self::colord_hsla_to_hsva( $hsla ) );
}

Changelog

Version Description
6.3.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_duotone/colord_hsla_to_rgba