Random lines

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

Random lines

Post by Mr. Kibernetik » Fri Jun 09, 2017 8:18 am

Code: Select all

x=600; y=400
> i,1..1000
  #.drawcolor(#.rnd(1), #.rnd(1), #.rnd(1))
  #.drawline(#.rnd(x), #.rnd(y), #.rnd(x), #.rnd(y))
<
Снимок.JPG
Снимок.JPG (151.59 KiB) Viewed 109 times

User avatar
rbytes
Posts: 1415
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 6
iPad 2
Dell Inspiron laptop
Location: Canada
Flag: Canada
Contact:

Re: Random lines

Post by rbytes » Sun Sep 17, 2017 5:54 pm

That is fast drawing!
####### Living the colorful life #######

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

Re: Random lines

Post by Mr. Kibernetik » Sun Sep 17, 2017 7:37 pm

rbytes wrote:
Sun Sep 17, 2017 5:54 pm
That is fast drawing!
Did you try hopalong example in sample programs?
The speed is so fast that it looks like a kaleidoscope :)

User avatar
rbytes
Posts: 1415
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 6
iPad 2
Dell Inspiron laptop
Location: Canada
Flag: Canada
Contact:

Re: Random lines

Post by rbytes » Sun Sep 17, 2017 10:10 pm

Yes, that is very fast. It is also impressive how small the code for these effects can be compacted in SPL. That is, when one learns it well. :lol:
####### Living the colorful life #######

Post Reply