Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

wip

  • Loading branch information...
commit 8c81204366fe22fb0f6905cdf05f48a34df54688 1 parent c4ed46c
@wpwrak wpwrak authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 patches/demo/wheel/wheel.fnp
View
12 patches/demo/wheel/wheel.fnp
@@ -93,16 +93,16 @@ per_frame:
image2_a = alpha2;
f1 = f1+(speed1-off1)*scale;
- f1 = f1 < 0 ? f1+24 : f1;
- f1 = f1 >= 24 ? f1-24 : f1;
+ f1 = f1+24 if f1 < 0;
+ f1 = f1-24 if f1 >= 24;
off1 = reset1 ? speed1 : start1 ? speed1-1/scale : off1;
- off1 = rev1 ? 2*speed1-off1 : off1;
+ off1 = 2*speed1-off1 if rev1;
f2 = f2+(speed2-off2)*scale;
- f2 = f2 < 0 ? f2+24 : f2;
- f2 = f2 >= 24 ? f2-24 : f2;
+ f2 = f2+24 if f2 < 0;
+ f2 = f2-24 if f2 >= 24;
off2 = reset2 ? speed2 : start2 ? speed2-1/scale : off2;
- off2 = rev2 ? 2*speed2-off2 : off2;
+ off2 = 2*speed2-off2 if rev2;
image1_index = f1;
image2_index = f2;
Please sign in to comment.
Something went wrong with that request. Please try again.