From: | Rob Hutchinson |
Date: | 24 Jan 2000 at 19:36:04 |
Subject: | Re: LSL |
Hello Sami
> This draws a requral 360 sided polygon
No it doesn`t, X and Y are off the bitmap :/.. IE, like 30000
pixels too far off the bitmap ;)
Did you just write that off the top of your head?
> dim kos.l(360),cin.l(360)
> an.f=pi/180
> for l.l=0 to 359
> kos(l)=cos(l*an)*1024
> cin(l)=sin(l*an)*1024
> next l
>
> width2=width/2
> height2=height/2
>
> r.l=height2-2
> rx.w=r*kos(0) asl 10+width2
> ry.w=r*cin(0) asl 10+height2
> for l=1 to 359
> rx1.w=r*kos(l) asl 10+width2
> ry1.w=r*cin(l) asl 10+height2
> line rx,ry,rx1,ry1,255
> rx=rx1
> ry=ry1
> next l
>
Rob,
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie