Spiral

Duncan Booth duncan at NOSPAMrcp.co.uk
Fri May 31 09:11:19 EDT 2002


Chris <nospam@[127.0.0.1]> wrote in news:riyRODHgB098EwGL@[127.0.0.1]:

> 
> I tried your program and it worked - although it didn't do the same as 
> my QBASIC program.  Yours simply drew a fairly open spiral - not a tight 
> one giving the moiré patterns.  Did you get them?
> (I probably made some elementary mistake!)

I assumed your code was working in degrees. If so it only goes round just 
over one complete rotation. If your calculation was in radians you would 
have gone round many more times. Unless of course I just got it wrong...

-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?



More information about the Python-list mailing list