From: | Sami N��t�nen |
Date: | 25 Jan 2000 at 18:46:23 |
Subject: | Re: LSL |
On 24-Jan-00, Rob Hutchinson wrote.
> 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?
Yep and now that you said that I see clearly where the bug is. ;)
should have bee ASR not asl. ;)
>> 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) asr 10+width2
>> ry.w=r*cin(0) asr 10+height2
>> for l=1 to 359
>> rx1.w=r*kos(l) asr 10+width2
>> ry1.w=r*cin(l) asr 10+height2
>> line rx,ry,rx1,ry1,255
>> rx=rx1
>> ry=ry1
>> next l
>>
Sami N��t�nen
EMail: sami.naatanen@dlc.fi
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie