_TITLE "Draw Ken's Ornament" 'b+ 2020-08-26
resetPlasma
drawOrnament 500, 350, 90, 0
resetPlasma
drawOrnament 500, 350, r, 0
resetPlasma
drawOrnament 500, 350, r, -1
rStop
= (RND * 80 + 5) \
1 resetPlasma
drawOrnament
RND * 1000, RND * 700, 90, RND * 1 \
1
'Ken designed at r = 100, no 90 is best radius
SUB drawOrnament
(x
, y
, r
, lineTF
) ' well use r for radius instead of a scale ' took me awhile to pin down this drawing!
'CIRCLE (x, y), 3
'CIRCLE (x + r, y), 3
'CIRCLE (x - r, y), 3
'CIRCLE (x, y + r), 3
'CIRCLE (x, y - r), 3
t2 = .22
y
= y
+ (r
- tt
) * SIN(a
) tt = tt + .25
pN = pN + .1 'dim shared cN as Double, pR as integer, pG as integer, pB as integer
Plasma~&
= _RGB32(127 + 127 * SIN(pR
* pN
), 127 + 127 * SIN(pG
* pN
), 127 + 127 * SIN(pB
* pN
))