bug with "point()" ?
in
Programming Questions
•
2 years ago
(I don't realy know where this topic belongs so please excuse me if this is the wrong place for it)
I recently stubled upon a strange result with the point() funktion when using the alpha channel. I simlified the code and came up with this:
Sure you can get around it by using pixels but it is still annoying if you just want to draw something quick and have to loadPixels(), updatePixels(), etc.
I recently stubled upon a strange result with the point() funktion when using the alpha channel. I simlified the code and came up with this:
- void setup()
{
size(255, 255);
background(0);
}
void draw()
{
noLoop();
for (int y = 0; y < 255; y++)
{
for (int x = 0; x < 255; x++)
{
stroke(255,x);
point(y, x);
}
}
println("done");
}
Sure you can get around it by using pixels but it is still annoying if you just want to draw something quick and have to loadPixels(), updatePixels(), etc.
1