From ed9fa76925909f94512ef70280b90712e35c3ab7 Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 14 Mar 2024 02:33:53 +0700 Subject: Introduce rough implementation of the palette editor --- raylib.ads | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'raylib.ads') diff --git a/raylib.ads b/raylib.ads index d1d8fbb..32cd34c 100644 --- a/raylib.ads +++ b/raylib.ads @@ -66,6 +66,7 @@ package Raylib is KEY_A: constant int := 65; KEY_D: constant int := 68; KEY_P: constant int := 80; + KEY_O: constant int := 79; KEY_SPACE: constant int := 32; function Is_Key_Pressed(key: int) return C_bool with @@ -146,4 +147,14 @@ package Raylib is Import => True, Convention => C, External_Name => "ColorBrightness"; + function Color_To_HSV(C: Color) return Vector3 + with + Import => True, + Convention => C, + External_Name => "ColorToHSV"; + function Color_From_HSV(Hue, Saturation, Value: C_Float) return Color + with + Import => True, + Convention => C, + External_Name => "ColorFromHSV"; end Raylib; -- cgit v1.2.3