openframeworks / openframeworks/openFrameworks
ofBackground(255, 255, 255) does not work on rpi3
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
calling
ofBackground(255, 255, 255);
or
ofColor black;
black.r = 255;
black.g = 255;
black.b = 255;
ofBackground(black);
does not work on rpi3, nor does it throw any errors - it just shows a gray screen and all drawing is disabled. Changing to
ofBackground(0, 255, 255);
or
ofBackground(255, 0, 0);
works fine, as does
ofBackgroundHex(0x000000);
I've copied the example of app and tested just ofBackground() and it still behaves the same. I can use ofBackgroundHex no issue, but I'm curious as to why this would be different on the pi.
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
Reproduce the issue in a minimal openFrameworks app on a Raspberry Pi 3 using ofBackground() and ofBackgroundHex(). Compare the RGB and hex paths while checking the rendering behavior after each call. Done means an RGB value of (255, 255, 255) produces the expected background without disabling drawing, matching the working hex path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, raspberry-pi
- Domain
- computer-graphics, embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100