Code: Select all
z=10
t="The Quick Brown Fox"
#.fontname("Candara")
> y, 10..130, 10
#.drawcolor(#.hsv2rgb(y*3,1,1):3)
#.fontsize(y)
z *= 1.3
#.drawtext(20,y+z,t) 'draws text t at point x,y using current drawing
<
Code: Select all
z=10
t="The Quick Brown Fox"
#.fontname("Candara")
> y, 10..130, 10
#.drawcolor(#.hsv2rgb(y*3,1,1):3)
#.fontsize(y)
z *= 1.3
#.drawtext(20,y+z,t) 'draws text t at point x,y using current drawing
<
Code: Select all
w,h = #.scrsize()
#.angle(#.degrees)
lines = #.min(w,h)/20
iters = 200
> i, 1..lines
fx[i] = #.rnd(w)
fy[i] = #.rnd(h)
fs[i] = #.rnd(100)
fa[i] = #.rnd(360)
dx[i] = (#.rnd(1)-0.5)*3
dy[i] = (#.rnd(1)-0.5)*3
ds[i] = (#.rnd(1)-0.5)*3
da[i] = (#.rnd(1)-0.5)*2
r[i] = #.rnd(1)
g[i] = #.rnd(1)
b[i] = #.rnd(1)
<
#.scroff()
> j, 1..iters
#.scrclear()
> i, 1..lines
>> fs[i]<0
x = fx[i] ; y = fy[i]
#.drawreset()
#.drawrotate(x,y,fa[i])
#.fontsize(fs[i])
fs[i] += ds[i]
fx[i] += dx[i]
fy[i] += dy[i]
fa[i] += da[i]
#.drawcolor(r[i],g[i],b[i])
#.drawtext(x,y,"The Quick Brown Fox")
<
#.scr()
<
Code: Select all
t="The Quick Brown Fox"
#.fontname("Candara")
z,n = 10
> y, 10..130, 10
#.fontsize(y)
z *= 1.3
> i, 1..n
#.drawcolor(#.hsv2rgb(y*3,i/n,i/n):3,i/n)
#.drawtext(20+i,y+z+i,t)
#.delay(0.04)
<
<
This code:
Code: Select all
> i, 1..n
#.drawcolor(#.hsv2rgb(y*3 ,i/n ,i/n):3, i/n)
#.drawtext(20+i,y+z+i,t)
#.delay(0.04)
<
Code: Select all
#.drawcolor(#.hsv2rgb(y*3, i/n, i/n):3, i/n)