mirror of
https://github.com/dschmenk/LightCycles.git
synced 2024-06-10 03:29:33 +00:00
12 lines
271 B
Python
Executable File
12 lines
271 B
Python
Executable File
import math, sys
|
|
|
|
DEG_PER_CIRCLE = 128
|
|
DEG_TO_RAD = math.pi*2/DEG_PER_CIRCLE
|
|
|
|
print 'TAN_TBL'
|
|
for angle in xrange(DEG_PER_CIRCLE/4):
|
|
tan = math.tan(angle*DEG_TO_RAD)
|
|
fxt = int(math.floor(tan*256.0+0.5))
|
|
print '\t!WORD\t$%04X\t; angle %d' % (fxt, angle)
|
|
|