openframeworks / openframeworks/openFrameworks

ofBackground(255, 255, 255) does not work on rpi3

Open
#5,151 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

linuxarm
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

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.