This little app draws a cartoon figure and randomly makes random hair on his or her head. Press Space Bar to randomly make a different hair style. lol Sometimes it's "The New Wave", sometimes it's a giant fuzzy Afro, sometimes it's just a bunch of long curly hair. :) The amount it chooses from is over 6000 but most of them practically the same. The hair color stays the same but if you want to change it, go right ahead. Or anything else of course. You can tell right off that I was playing with math graphics again. :)
_TITLE "Press Space Bar for random curly hair." start:
'Head
'Left Eye
'white
'blue
'pupil
'Right Eye
'white
'blue
'pupil
'Nose
CIRCLE (410, 345), sz
, _RGB(230, 140, 100), , , 1.5
'Mouth
'Neck
LINE (360, 460)-(460, 520), _RGB32(249, 155, 127), BF
'Body
'Hair
hair:
fuzzy
= (RND * 300) + 100 seconds = seconds + 1
sec = (60 - seconds) * 6 + 240
xx
= INT(SIN(sec
/ 180 * 3.141592) * 180) + 400 yy
= INT(COS(sec
/ 180 * 3.141592) * 180) + 300 s = sec
'step was originally -.125
s = s + h
'h was originally Pi
x
= COS(s
* 3.141592 / fuzzy
) * d
y
= SIN(s
* 3.151492 / fuzzy
) * d
x2 = x + xx: y2 = y + yy
CIRCLE (x2
+ 3, y2
+ 50 + h
- (h2
* 10)), sz
, _RGB32(127, 127, 0) seconds = 0