Random lines

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

Random lines

Post by Mr. Kibernetik »

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 1896 times

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Random lines

Post by rbytes »

That is fast drawing!
The only thing that gets me down is gravity...

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

Re: Random lines

Post by Mr. Kibernetik »

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: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Random lines

Post by rbytes »

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:
The only thing that gets me down is gravity...

Post Reply