GuiColorPicker() ignores GuiColorPanel() result

Open Beginner friendly
#586 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
c
Domain
design, frontend

Research direction

Open src/raygui.h around the two linked lines and read GuiColorPicker() alongside GuiColorPanel() and GuiColorBarHue(). Check how their return values indicate interaction, then run the relevant color picker example or tests if available. Done when the picker reports changes from the panel as well as the hue bar, if that matches the intended behavior.

Written by the indexing model from the issue text.

Description

GuiColorPicker() ignores the result from GuiColorPanel() and only returns GuiColorBarHue()'s result. Is this intentional?

first function result set:
https://github.com/raysan5/raygui/blob/8b9ac6a6ec4497ae0ddb86a62af814ebad607ba8/src/raygui.h#L4221

result gets overwritten:
https://github.com/raysan5/raygui/blob/8b9ac6a6ec4497ae0ddb86a62af814ebad607ba8/src/raygui.h#L4229

Dominant language
C
Stars
5.3k
Forks
410
Avg merge
1d 22h
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raysan5/raygui

All issues in raysan5/raygui

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.