Hi, so I'm just getting started with cocos, and I had a question about
the Line class in cocos.draw.

Basically I tried creating a line as such:

from cocos.draw import Line
....

my_layer.add(Line((0, 0), (100, 100), (255, 255, 255, 255)))

However, I get an exception on draw.py, line 344, in move_to
TypeError: _EuclidMetaclass object argument after * must be a sequence

I tried printing my position, self.start, and self.end and they're all
equal to 1.

I couldn't find any examples on how to use this particular Line class,
I tried looking for any hint of documentation in the package and the
api, but there's no clear explanation on the parameters for
Line.__init__,  so my guess is that I'm passing those parameters
incorrectly. But what am I doing wrong?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to