Skip to content

Instantly share code, notes, and snippets.

@d33tah
Created September 6, 2010 21:43
Show Gist options
  • Save d33tah/567550 to your computer and use it in GitHub Desktop.
Save d33tah/567550 to your computer and use it in GitHub Desktop.
def drawObjectsTask(self,param,task):
n = len(param)
for i in range(n):
deg=i*(6.2832/n)
x=math.sin(deg)*self.r
y=math.cos(deg)*self.r
object_ = self.drawObject(x,y,i,param[i])
self.objects[i]=object_
yield task.cont
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment