mirror of
https://github.com/raysan5/raygui.git
synced 2026-01-28 09:49:18 -05:00
Update raygui.h
This commit is contained in:
@ -3367,7 +3367,7 @@ int GuiColorPanel(Rectangle bounds, const char *text, Color *color)
|
|||||||
pickerSelector.y = bounds.y + (1.0f - (float)hsv.z)*bounds.height; // HSV: Value
|
pickerSelector.y = bounds.y + (1.0f - (float)hsv.z)*bounds.height; // HSV: Value
|
||||||
|
|
||||||
float hue = -1.0f;
|
float hue = -1.0f;
|
||||||
Vector3 maxHue = { hue >= 0.0f ? hue : hsv.x, 1.0f, 1.0f };
|
Vector3 maxHue = { (hue >= 0.0f)? hue : hsv.x, 1.0f, 1.0f };
|
||||||
Vector3 rgbHue = ConvertHSVtoRGB(maxHue);
|
Vector3 rgbHue = ConvertHSVtoRGB(maxHue);
|
||||||
Color maxHueCol = { (unsigned char)(255.0f*rgbHue.x),
|
Color maxHueCol = { (unsigned char)(255.0f*rgbHue.x),
|
||||||
(unsigned char)(255.0f*rgbHue.y),
|
(unsigned char)(255.0f*rgbHue.y),
|
||||||
@ -3681,7 +3681,7 @@ int GuiColorPanelHSV(Rectangle bounds, const char *text, Vector3 *colorHsv)
|
|||||||
pickerSelector.y = bounds.y + (1.0f - (float)colorHsv->z)*bounds.height; // HSV: Value
|
pickerSelector.y = bounds.y + (1.0f - (float)colorHsv->z)*bounds.height; // HSV: Value
|
||||||
|
|
||||||
float hue = -1.0f;
|
float hue = -1.0f;
|
||||||
Vector3 maxHue = { hue >= 0.0f ? hue : colorHsv->x, 1.0f, 1.0f };
|
Vector3 maxHue = { (hue >= 0.0f)? hue : colorHsv->x, 1.0f, 1.0f };
|
||||||
Vector3 rgbHue = ConvertHSVtoRGB(maxHue);
|
Vector3 rgbHue = ConvertHSVtoRGB(maxHue);
|
||||||
Color maxHueCol = { (unsigned char)(255.0f*rgbHue.x),
|
Color maxHueCol = { (unsigned char)(255.0f*rgbHue.x),
|
||||||
(unsigned char)(255.0f*rgbHue.y),
|
(unsigned char)(255.0f*rgbHue.y),
|
||||||
|
|||||||
Reference in New Issue
Block a user