Skip to content

raylib.ColorToHSV

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get HSV values for a Color NOTE: Hue is returned as degrees [0..360]

Parameters

Parameter Default Value Note
color

Return value

Condition Return Value
(always) map

Notes

Example

// Convert RED to HSV — hue should be 0 degrees
hsv = raylib.ColorToHSV(raylib.RED)
print hsv  // [0, 1, 1]

Clone this wiki locally