Skip to content

Commit

Permalink
Use all four colors in random pixel example
Browse files Browse the repository at this point in the history
  • Loading branch information
miracoli committed Apr 17, 2021
1 parent 8d1ee99 commit 6f65109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/RandomPixels/RandomPixels.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ void setup() {
void loop() {
static unsigned cnt;
cnt++;
vga.putpixel(rand()%VGAX_WIDTH, rand()%VGAX_HEIGHT, cnt%3);
vga.putpixel(rand()%VGAX_WIDTH, rand()%VGAX_HEIGHT, cnt%4);
}

0 comments on commit 6f65109

Please sign in to comment.