Immediate-Mode-UI / Immediate-Mode-UI/Nuklear
nk_draw_text ignores background color
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.4k
- Forks
- 686
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 3
Description
The `nk_draw_text()` function accepts a background and foreground color, but only the foreground color is used.
That is because `nk_draw_list_add_text()` doesn't handle the background color.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at nk_draw_text() and trace its call to nk_draw_list_add_text(), focusing on how the background and foreground colors are passed. The issue is done when background color is rendered as well as foreground color; verify the behavior with the project’s existing checks or a minimal drawing case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100