Keep working on GuiColorPicker()

This commit is contained in:
Ray San
2017-11-03 12:49:15 +01:00
parent 0a82948bb3
commit 64c2fc471f
2 changed files with 66 additions and 24 deletions

View File

@ -184,7 +184,7 @@ int main()
//-----------------------------------------------------------
Vector2 colorPickerPos = { (float)screenWidth - 287, 20.0f };
Vector2 cursorPickerPos = colorPickerPos;
Color colorPickerValue;
Color colorPickerValue = RED;
Color colorSample[NUM_COLOR_SAMPLES];
for (int i = 0; i < NUM_COLOR_SAMPLES; i++) colorSample[i] = RAYWHITE;
@ -468,7 +468,7 @@ int main()
}
// Draw color picker
GuiColorPicker((Rectangle){ colorPickerPos.x, colorPickerPos.y, 240, 240 }, 60.0f, ORANGE);
colorPickerValue = GuiColorPicker((Rectangle){ colorPickerPos.x, colorPickerPos.y, 240, 240 }, colorPickerValue);
// Draw color samples
/*