__init__(self,
points,
color,
fb,
closed=0,
width=1,
joins=1,
line=0,
contig=1,
on=1,
depth=0,
name=None,
x=0,
y=0)
(Constructor)
| source code
|
PolySprite instantiation method
- Parameters:
points - (pixels) polygon vertices. List of (x,y) pairs,
where (0,0) is screen center, positive y is up,
positive x is to the right.
color - line color
fb - framebuffer
closed - (boolean) open or closed polygon?
width - (pixels) line width
line - (bool) if true, draw lines, else filled polygon
contig - (bool) if true (default), contiguous sequence
of lines. Otherwise, each pair of points as
interpreted as single broken line.
joins - (boolean) join lines and use end-caps
on - (boolean) just like regular Sprite class
depth - depth of sprite (for DisplayList below). The
DisplayList class draws sprites in depth order, with
large depths being draw first (ie, 0 is the top-most
layer of sprites)
name - debugging name (string) of the sprite; if not
set, then either the filename or a unique random name
is used instead.
- Overrides:
object.__init__
|