Author Topic: STAR BURSTS . . . PRETTY.  (Read 5347 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
STAR BURSTS . . . PRETTY.
« on: January 16, 2011 »
Okay, I'm hooked again.

Trawling through old unfinished ideas.

I could look at this all day.

Code: [Select]
open window 640,512
ang=pi/180
l=3
sp=5
bursts=18
stars=8
dim l(stars),sp(stars),b(stars)
dim x(stars),y(stars),a(stars)
dim burst(stars),bursts(stars)
dim rr(stars),gg(stars),bb(stars)
for c=1 to stars
b(c)=c*4
x(c)=int(ran(51))*10
y(c)=int(ran(64))*10
rr(c)=ran(1000)+200
gg(c)=ran(1000)+200
bb(c)=ran(1000)+200
burst(c)=360/bursts
next c
repeat
setdrawbuf vm
vm=1-vm
setdispbuf vm
clear window
for c=1 to stars
b(c)=b(c)+1
setrgb 1,rr(c)/b(c),gg(c)/b(c),bb(c)/b(c)
for a=1 to bursts
for d=1 to 2.5 step.5
m=cos(burst(c)*ang*(a+d))*(b(c)*(l/d))+y(c)
n=sin(burst(c)*ang*(a+d))*(b(c)*(l/d))+x(c)
o=cos(burst(c)*ang*(a+d))*((b(c)*(l/d))+(sp/2))+y(c)
p=sin(burst(c)*ang*(a+d))*((b(c)*(l/d))+(sp/2))+x(c)
'line m,n to o,p
dot m,n
fill circle m,n,2
next d
next a
if b(c)*l>100 then
b(c)=1
x(c)=int(ran(51))*10
y(c)=int(ran(64))*10
rr(c)=ran(1000)+200
gg(c)=ran(1000)+200
bb(c)=ran(1000)+200
endif
next c
until (1=0)

« Last Edit: May 31, 2015 by bikemadness »
Have a Yahappy day.
I don't know what is wrong with the world - but I know how to fix it.

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: STAR BURSTS . . . PRETTY.
« Reply #1 on: January 21, 2011 »
simple but effective. Nice job keeping the code compact.

Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: STAR BURSTS . . . PRETTY.
« Reply #2 on: January 22, 2011 »
executable, please.
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: STAR BURSTS . . . PRETTY.
« Reply #3 on: January 22, 2011 »
Benny, this is yabasic, there's no way to make an executable.
You have to use the emulator
You will need to disable the 'force flush rate' setting in the options to see anything with this one.

Jim
« Last Edit: January 22, 2011 by Jim »
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17412
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: STAR BURSTS . . . PRETTY.
« Reply #4 on: January 22, 2011 »
This looks surprisingly good considering the simplicity of the code.

It's easily portable so maybe it would be cool to code a version of this in some other language and apply some blurring to it too.

Nice one Bikemadness. K+
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Wenlock

  • C= 64
  • **
  • Posts: 68
  • Karma: 4
  • BASIC & Testcards rule.
    • View Profile
Re: STAR BURSTS . . . PRETTY.
« Reply #5 on: March 29, 2011 »
Oddly the circles have to  be at least radius 3 to be visible on the PS3.

Wenlock
YABASIC ROOLZ!

Offline Galileo

  • ZX 81
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Re: STAR BURSTS . . . PRETTY.
« Reply #6 on: September 04, 2014 »
Beauty!