Created
May 1, 2014 09:02
-
-
Save brightcloudy/4953278d8c7b75fe5005 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> for i in range(0,255): | |
... o = float(i * float((2*math.pi) / 256)) | |
... p = math.sin(o) * 127 + 127 | |
... print str(int(round(p))) + ",", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment