Are properties such as fill color, stroke weight, text size, etc. write only?

Hello,

Some insight I have gleaned from topics and Processing source code:

// Attributes Read
// v1.0.0
// GLV 2021-10-22

//Defaults
println(g.strokeWeight);
println(g.textSize);
println(hex(g.fillColor));
println(g.stroke);
println(g.fill);

//Test
strokeWeight(1);
println(g.strokeWeight);

textSize(1);
println(g.textSize);

fill(0xFF00FF00);
println(hex(g.fillColor));

noStroke();
println(g.stroke);

noFill();
println(g.fill);

:)

5 Likes