You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Part of the custom CoreyPHP color code utility system used to dynamically render and style generated files. Converts a single CoreyPHP color code character into an indexed array containing Red, Green, and Blue channels.
Usage
codeToRgb(string|int $colorCode): array
Parameters
colorCode (string|integer)
: A case-insensitive single character (a-z, 0-9).
(array)
: Returns a 3-element array matching [red, green, blue] where each element is an integer between 0 and 255. Defaults to [255, 255, 255] (white) if unrecognized.