HI
Can someone point to a example of using either of both the Cocos Line
and Segement object?
I cannot get them to draw inside my Cocoslayer object.Here is my code
sample
-------------------------------------------------------------------------
.....
myLine = cocos.draw.Line( start=Point2(8,24), end=Point2(8,180),
color=( 255, 33,66,255))
myLayer.add(myLine)
.....
-------------------------------------------------------------------------
I get this error , when I run the program:
.....
File "D:\Dev\proto\src\cocos\draw.py", line 169, in draw
self.render()
File "D:\Dev\proto\src\cocos\draw.py", line 387, in render
self.move_to( self.start )
File "D:\Dev\proto\src\cocos\draw.py", line 344, in move_to
self._position = self._context.transform * Point2(*position)
TypeError: _EuclidMetaclass object argument after * must be a sequence
....
-------------------------------------------------------------------------
Am I not specifying the start & end arguments correctly ?
What is the correct way to use this class?
thanks
Rudy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---