Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
Classes | Functions | Variables
Evolife.Graphics.Curves Namespace Reference

Stores data that can be used to plot curves and stored into a file. More...

Classes

class  Curve
 Holds a complete (continuous) curve in memory. More...
 
class  Curves
 Stores a list of 'Curves'. More...
 
class  Stroke
 Stroke: drawing element (point or segment) #. More...
 

Functions

def Shade (x, BaseColour='green', Min=0, Max=1, darkToLight=True, invisible='white')
 compute a shade for a given base colour Green colours between 10 and 21 Red colours between 22 and 33 Blue colours between 34 and 45 More...
 
def EvolifeColourID (Colour_designation, default=(4, 'red'))
 Recognizes Colour_designation as a number, a name, a (R,V,B) tuple or a #RRVVBB pattern. More...
 

Variables

list EvolifeColours
 Evolife colours #. More...
 
list EvolifeColourNames
 
dictionary Shades = {'green':(10, 21), 'red':(22,33), 'blue':(34, 45)}
 

Detailed Description

Stores data that can be used to plot curves and stored into a file.

Function Documentation

◆ EvolifeColourID()

def Evolife.Graphics.Curves.EvolifeColourID (   Colour_designation,
  default = (4,'red') 
)

Recognizes Colour_designation as a number, a name, a (R,V,B) tuple or a #RRVVBB pattern.

Returns the recognized colour as a couple (Number, Name)

Definition at line 70 of file Curves.py.

◆ Shade()

def Evolife.Graphics.Curves.Shade (   x,
  BaseColour = 'green',
  Min = 0,
  Max = 1,
  darkToLight = True,
  invisible = 'white' 
)

compute a shade for a given base colour Green colours between 10 and 21 Red colours between 22 and 33 Blue colours between 34 and 45

Definition at line 46 of file Curves.py.

Variable Documentation

◆ EvolifeColourNames

list Evolife.Graphics.Curves.EvolifeColourNames
Initial value:
1= ['grey', 'black', 'white', 'blue', 'red', 'yellow', 'brown', 'blue02', 'pink', 'lightblue',
2 'green', 'green1', 'green2', 'green3', 'green4', 'green5', 'green6', 'green7', 'green8', 'green9', 'green10', 'green11', # 21
3 'red0', 'red1', 'red2', 'red3', 'red4', 'red5', 'red6', 'red7', 'red8', 'red9', 'red10', 'red11', # 33
4 'blue0', 'blue1', 'blue2', 'blue3', 'blue4', 'blue5', 'blue6', 'blue7', 'blue8', 'blue9', 'blue10', 'blue11',
5 ]

Definition at line 38 of file Curves.py.

◆ EvolifeColours

list Evolife.Graphics.Curves.EvolifeColours
Initial value:
1= ['#808080', '#000000', '#FFFFFF', '#0000FF', '#FF0000', '#FFFF00', '#A06000', '#0080A0', '#FF80A0', '#94DCDC',
2 '#008000', '#009500', '#00AA00', '#00BF00', '#00D400', '#00E900', '#00FE00', '#64FF64', '#78FF78', '#8CFF8C', '#A0FFA0', '#B4FFB4',
3 '#800000', '#950000', '#AA0000', '#BF0000', '#D40000', '#E90000', '#FE0000', '#FF6464', '#FF7878', '#FF8C8C', '#FFA0A0', '#FFB4B4',
4 '#000080', '#101095', '#2020AA', '#3030BF', '#3838D4', '#4747E9', '#5555FE', '#6464FF', '#7878FF', '#8C8CFF', '#A0A0FF', '#B4B4FF',
5 ]

Evolife colours #.

EvolifeColours = ['#808080', 'black', 'white', 'blue', 'red', 'yellow', '#A06000', '#0080A0', '#FF80A0', '#94DCDC',

Definition at line 33 of file Curves.py.

◆ Shades

dictionary Evolife.Graphics.Curves.Shades = {'green':(10, 21), 'red':(22,33), 'blue':(34, 45)}

Definition at line 44 of file Curves.py.