WP_Duotone::colord_hsla_to_rgba( array $hsla ): array

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

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

VersionDescription
6.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.