Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
|
Stroke: drawing element (point or segment) #. More...
Public Member Functions | |
def | __init__ (self, Coordinates, RefSize=None) |
A Stroke is a point or shape. More... | |
def | point (self) |
returns (x,y) More... | |
def | endpoint (self) |
coordinates + size More... | |
def | scroll (self) |
def | __add__ (self, Other) |
Public Attributes | |
PixelSize | |
Coord | |
size | |
Stroke: drawing element (point or segment) #.
stores coordinates as: (x, y, colour, size) Missing values are completed with default values A fractional size value means a fraction of the reference size (typically window width) A negative size value means that size is provided in logical coordinates (and that the object should be resized when zoomed). Otherwise size means pixels.
def Evolife.Graphics.Curves.Stroke.__init__ | ( | self, | |
Coordinates, | |||
RefSize = None |
|||
) |
A Stroke is a point or shape.
It is represented by a tuple (x, y, colour, size). Missing values are completed by default values. A fractional size value means a fraction of the reference size (typically window width) A negative size value means that size is provided in logical coordinates (and that the object should be resized when zoomed). Otherwise size means pixels.
def Evolife.Graphics.Curves.Stroke.__add__ | ( | self, | |
Other | |||
) |
def Evolife.Graphics.Curves.Stroke.endpoint | ( | self | ) |
def Evolife.Graphics.Curves.Stroke.point | ( | self | ) |