aboutsummaryrefslogtreecommitdiffstats
path: root/csci4611/lec/triangles
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2021-09-14 12:17:33 -0500
committerMatt Strapp <matt@mattstrapp.net>2021-09-14 12:17:33 -0500
commit8a106372edf9256ee2ff43328c0bef8993b97f6f (patch)
tree5c84679fead5546e4ac66f9cf1c3c6e503cfcc58 /csci4611/lec/triangles
parentEdit resume (diff)
downloadhomework-8a106372edf9256ee2ff43328c0bef8993b97f6f.tar
homework-8a106372edf9256ee2ff43328c0bef8993b97f6f.tar.gz
homework-8a106372edf9256ee2ff43328c0bef8993b97f6f.tar.bz2
homework-8a106372edf9256ee2ff43328c0bef8993b97f6f.tar.lz
homework-8a106372edf9256ee2ff43328c0bef8993b97f6f.tar.xz
homework-8a106372edf9256ee2ff43328c0bef8993b97f6f.tar.zst
homework-8a106372edf9256ee2ff43328c0bef8993b97f6f.zip
lecture fun :^)
Diffstat (limited to 'csci4611/lec/triangles')
-rw-r--r--csci4611/lec/triangles/triangles.pde10
1 files changed, 10 insertions, 0 deletions
diff --git a/csci4611/lec/triangles/triangles.pde b/csci4611/lec/triangles/triangles.pde
new file mode 100644
index 0000000..6c7306b
--- /dev/null
+++ b/csci4611/lec/triangles/triangles.pde
@@ -0,0 +1,10 @@
+void draw() {
+ fill(255);
+ noStroke();
+ beginShape(TRIANGLE_FAN);
+ vertex(50,50);
+ for (int x=0;x<=8;x++) {
+ vertex(50+cos(x*PI/5)*30,50+sin(x*PI/5)*30);
+ }
+ endShape(CLOSE);
+} \ No newline at end of file