Author Topic: DOILYS  (Read 3237 times)

0 Members and 1 Guest are viewing this topic.

Offline bikemadness

  • Amiga 1200
  • ****
  • Posts: 319
  • Karma: 25
  • Hard players don't go home.
    • View Profile
DOILYS
« on: August 01, 2007 »
This is one of my early experiments. Simple, now - but still pretty.
Had to make it emulator friendly.

X to change shape

Code: [Select]
open window 640,512
ang=pi/180
x=320
y=260
doilys=10
dim points(doilys),dir(doilys),gap(doilys)
dim ra(doilys),r(doilys),g(doilys),b(doilys)
for c=1 to doilys
points(c)=int(ran(37))+3
dir(c)=360/points(c)
gap(c)=int(ran(points(c)/2))-1
ra(c)=ran(200)+50
r(c)=ran(256)
g(c)=ran(256)
b(c)=ran(256)
next c
repeat
setdrawbuf vm
vm=1-vm
setdispbuf vm
clear window
d=peek("port1")
for c=1 to doilys
if and(d,16384)>0 then
points(c)=int(ran(37))+3
dir(c)=360/points(c)
gap(c)=int(ran(points(c)/2))-1
ra(c)=ran(200)+50
r(c)=ran(256)
g(c)=ran(256)
b(c)=ran(256)
endif
setrgb 1,r(c),g(c),b(c)
for a=1 to points(c)
line cos(dir(c)*a*ang)*ra(c)+x,sin(dir(c)*a*ang)*ra(c)+y to cos(dir(c)*(a+gap(c))*ang)*ra(c)+x,sin(dir(c)*(a+gap(c))*ang)*ra(c)+y
next a
next c
until (1=0)

Have a Yahappy day.
Have a Yahappy day.
I don't know what is wrong with the world - but I know how to fix it.

Offline Clanky

  • Laser Guided Memories
  • Amiga 1200
  • ****
  • Posts: 340
  • Karma: 16
  • kiss that sound that pounds your senses
    • View Profile
Re: DOILYS
« Reply #1 on: August 01, 2007 »
Nice work Bike!
He tilts, and his eyes are focused on the ground far below.. Wind? Angels? Men..

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: DOILYS
« Reply #2 on: August 01, 2007 »
Looks nice :) It would be really easy to fake a rotation here too by varying either the x or y radius and adding some offset to the circles formula.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: DOILYS
« Reply #3 on: August 07, 2007 »
hehe sometimes it looks like an eye this is really sweet

Challenge Trophies Won: