|
Author |
Topic: strokeWeight fails (Read 289 times) |
|
sanguinarium
|
strokeWeight fails
« on: Aug 2nd, 2004, 1:20pm » |
|
here's one about strokeWeight: run the example below which should draw a non-filled, rotated red square with a line width of 4 pixels. you will find that the applet fails to draw the square (68/69 both PC/MAC) unless you do one of the following: - remove the comment in front of line() to draw an unrotated line first - remove the rotateX node in both cases, the square will be drawn correctly. ------------ void setup() { size(600, 600); noFill (); stroke(255, 0, 0); strokeWeight(4); } void loop() { background(0); translate(width/2, height/2); //line (20, 40, 80, 40); //uncomment this to see square rotateX(0.8 ); //comment this to see the square rect(-100, -100, 100, 100); }
|
|
|
|
|