'
' Mod 2 Helicopter blades idea started by Terry Ritchie mods by B+ 2018-08-31
start = -.00000001
finish = -2 * PI / 16
steps = finish / 20
inc = -.0981726875
aspect
= ABS(horizon
- my
) / (WH
* .5) IF aspect
> .35 THEN aspect
= .35 bladeWidth = 20 * aspect
midInk 0, 0, 128, 200, 200, 255, i / horizon
midInk 50, 200, 50, 50, 128, 50, (i - horizon) / (WH - horizon)
radian = a + k * -1.5707963
IF radian
< -2 * PI
THEN radian
= radian
+ 2 * PI
x1
= mx
+ 15 * COS(radian
) y1
= my
+ aspect
* 15 * SIN(radian
) y3
= WH
- .35 * 150 + .35 * 15 * SIN(radian
) x2
= mx
+ 135 * COS(radian
) y2
= my
+ aspect
* 135 * SIN(radian
) y4
= WH
- .35 * 150 + .35 * 135 * SIN(radian
) thic x1, y1, x2, y2, bladeWidth, c~&
thic x1
, y3
, x2
, y4
, 20 * .35, _RGB32(0, 0, 0) IF my
<> 0 THEN speed
= 60 * (WH
- my
) / WH
ELSE speed
= 30
t2 = thick / 2
x3
= x1
+ t2
* COS(a
+ _PI(.5)) y3
= y1
+ t2
* SIN(a
+ _PI(.5)) x4
= x1
+ t2
* COS(a
- _PI(.5)) y4
= y1
+ t2
* SIN(a
- _PI(.5)) x5
= x2
+ t2
* COS(a
+ _PI(.5)) y5
= y2
+ t2
* SIN(a
+ _PI(.5)) x6
= x2
+ t2
* COS(a
- _PI(.5)) y6
= y2
+ t2
* SIN(a
- _PI(.5)) ftri x6, y6, x4, y4, x3, y3, K
ftri x3, y3, x5, y5, x6, y6, K
' found at [abandoned, outdated and now likely malicious qb64 dot net website - don’t go there]: http://www.[abandoned, outdated and now likely malicious qb64 dot net website - don’t go there]/forum/index.php?topic=14425.0
SUB midInk
(r1%
, g1%
, b1%
, r2%
, g2%
, b2%
, fr##
) COLOR _RGB(r1%
+ (r2%
- r1%
) * fr##
, g1%
+ (g2%
- g1%
) * fr##
, b1%
+ (b2%
- b1%
) * fr##
)