Permalink
Browse files

arrow

  • Loading branch information...
1 parent 3657e59 commit a89ed090e3435f47f41355c3046dec82a35659e3 @n8han n8han committed Oct 8, 2010
Showing with 8 additions and 1 deletion.
  1. +8 −1 Prize.spde
View
@@ -51,6 +51,7 @@ def camera() {
def draw() {
frame = frame + 1
background(0)
+ pushMatrix()
camera()
rotate(spin)
for (contestant <- wheel) {
@@ -61,8 +62,14 @@ def draw() {
popMatrix()
}
spin = (spin + speed) % TWO_PI
- if (frame == frames)
+ popMatrix()
+ if (frame.toFloat / frames > .7) {
+ val top = height * 4f / 10
+ triangle(0, top, 0, height - top, width / 10, height / 2)
+ }
+ if (frame == frames) {
noLoop()
+ }
}
override def mouseClicked {

0 comments on commit a89ed09

Please sign in to comment.