Page 1 of 1

Hopalong

Posted: Sun Sep 17, 2017 1:51 am
by Mr. Kibernetik

Code: Select all

a = 1 ; b = 3 ; c = 36 'change me
w,h = #.scrsize()
x,y = 0
i = 0
#.drawrotate(w/2,h/2,#.pi/4)
>
  x,y = f(x,y)
  #.drawpoint(x+w/2,y+h/2,#.hsv2rgb(i,1,1):3)
  i += 0.0001
<
f(x,y) <= y+#.sign(x)*#.sqrt(#.abs(.b*x-.c)), .a-x
hopalong.PNG
hopalong.PNG (1.11 MiB) Viewed 3002 times