Weird behaviour (colormode)

edited January 2017 in Questions about Code

This is a pretty short question, in the following code line 10 is commented out and nothing is visible. But when it is not commented out we do see a WHITE dot. What is happening? That line doesn't do anything?

void setup() {
    size(300,300);
}

void draw() {
    background(color(0));

    strokeWeight(width/2);

    //color c1 = color(255); // works when enabled (but this doesnt do anything?)

    colorMode(ADD);
    stroke(color(255,0,0,255));

    point(width/2,height/2);  

    colorMode(BLEND);
}
Tagged:

Answers

Sign In or Register to comment.