Random graph

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

Random graph

Post by Mr. Kibernetik » Thu Jun 08, 2017 4:10 pm

Code: Select all

y = 200
'draw axis
#.drawline(500,y,0,y)
'draw graph
#.drawcolor(0,0,1)
> x, 1..500
  y += #.rnd(11) - 5
  #.drawline(x,y)
<
Снимок2.JPG
Снимок2.JPG (16.53 KiB) Viewed 1033 times

Post Reply