Hopalong

Post Reply
User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Hopalong

Post 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 3000 times

Post Reply