Skip to content

Commit 96180f3

Browse files
committed
add size() indep
1 parent 7cc2301 commit 96180f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

content/examples/Basics/Form/TriangleStrip/TriangleStrip.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ smooth();
1515

1616
int x = width/2;
1717
int y = height/2;
18-
int outerRad = 80;
19-
int innerRad = 50;
18+
float outerRad = min(width, height) * 0.4;
19+
float innerRad = outerRad * 0.6;
2020
float px = 0, py = 0, angle = 0;
2121
float pts = 36;
2222
float rot = 360.0/pts;

0 commit comments

Comments
 (0)