The color tracking program behaves differently when sized up; why?

Hello,

I recently wrote a program that detected the color of the black outline, stroke(0), of a shape.
It only worked when I used noSmooth().
The default smooth() did some “smoothing” of the colors and I could not detect a pure black.

Write some code to move the mouse and show the pixel colors or similar to get a sense of this.

Some fun with color variables:

println(hex(-1600000, 8));

fill(0xFFE79600);
circle(25, 25, 50);

fill(0xE7, 0x96, 0x00);
circle(25+50, 25, 50);
println(0xE7, 0x96, 0x00);

fill(231, 150, 0);
circle(25, 25+50, 50);

color c = color(231, 150, 0);
fill(c);
circle(25+50, 25+50, 50);

:)

2 Likes