Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
Public Member Functions | Public Attributes | List of all members
Evolife.Graphics.Curves.Stroke Class Reference

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
 

Detailed Description

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.

Definition at line 98 of file Curves.py.

Constructor & Destructor Documentation

◆ __init__()

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.

Definition at line 106 of file Curves.py.

Member Function Documentation

◆ __add__()

def Evolife.Graphics.Curves.Stroke.__add__ (   self,
  Other 
)

Definition at line 150 of file Curves.py.

◆ endpoint()

def Evolife.Graphics.Curves.Stroke.endpoint (   self)

coordinates + size

Definition at line 139 of file Curves.py.

◆ point()

def Evolife.Graphics.Curves.Stroke.point (   self)

returns (x,y)

Definition at line 134 of file Curves.py.

◆ scroll()

def Evolife.Graphics.Curves.Stroke.scroll (   self)

Definition at line 144 of file Curves.py.

Member Data Documentation

◆ Coord

Evolife.Graphics.Curves.Stroke.Coord

Definition at line 120 of file Curves.py.

◆ PixelSize

Evolife.Graphics.Curves.Stroke.PixelSize

Definition at line 118 of file Curves.py.

◆ size

Evolife.Graphics.Curves.Stroke.size

Definition at line 124 of file Curves.py.


The documentation for this class was generated from the following file: