A Discrete-Event Network Simulator
API
Public Member Functions | Public Attributes | List of all members
grid.Color Class Reference

Color class. More...

Public Member Functions

def __init__ (self, r=0.0, g=0.0, b=0.0)
 Initializer. More...
 
def set (self, r, g, b)
 Set color. More...
 

Public Attributes

 b
 blue More...
 
 g
 green More...
 
 r
 red More...
 

Detailed Description

Color class.

Definition at line 437 of file grid.py.

Constructor & Destructor Documentation

◆ __init__()

def grid.Color.__init__ (   self,
  r = 0.0,
  g = 0.0,
  b = 0.0 
)

Initializer.

Parameters
selfthis object
rred
ggreen
bblue
Returns
none

Definition at line 444 of file grid.py.

Member Function Documentation

◆ set()

def grid.Color.set (   self,
  r,
  g,
  b 
)

Set color.

Parameters
selfthis object
rred
ggreen
bblue
Returns
none

Definition at line 455 of file grid.py.

References grid.Color.b, grid.Color.g, and grid.Color.r.

Member Data Documentation

◆ b

grid.Color.b

blue

Definition at line 454 of file grid.py.

Referenced by grid.Color.set().

◆ g

grid.Color.g

green

Definition at line 453 of file grid.py.

Referenced by grid.Color.set().

◆ r

grid.Color.r

red

Definition at line 452 of file grid.py.

Referenced by grid.Color.set().


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