A Discrete-Event Network Simulator
API
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 430 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

Definition at line 437 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 447 of file grid.py.

References ns3::RandomRoomPositionAllocator::RoomInfo.b, rgb.b, ns3::AnimationInterface::Rgb.b, grid.Color.b, ns3::has_begin_end< T >.g(), rgb.g, ns3::AnimationInterface::Rgb.g, grid.Color.g, rgb.r, ns3::AnimationInterface::Rgb.r, and grid.Color.r.

+ Here is the call graph for this function:

Member Data Documentation

◆ b

grid.Color.b

blue

Definition at line 446 of file grid.py.

Referenced by grid.Color.set().

◆ g

grid.Color.g

green

Definition at line 445 of file grid.py.

Referenced by grid.Color.set().

◆ r

grid.Color.r

red

Definition at line 444 of file grid.py.

Referenced by grid.Color.set().


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