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 473 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 480 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 491 of file grid.py.

References ns3::RandomRoomPositionAllocator::RoomInfo.b, Rgb.b, ns3::AnimationInterface::Rgb.b, grid.Color.b, Rgb.g, ns3::AnimationInterface::Rgb.g, grid.Color.g, Rgb.r, ns3::AnimationInterface::Rgb.r, and grid.Color.r.

Member Data Documentation

◆ b

grid.Color.b

blue

Definition at line 489 of file grid.py.

Referenced by grid.Color.set().

◆ g

grid.Color.g

green

Definition at line 488 of file grid.py.

Referenced by grid.Color.set().

◆ r

grid.Color.r

red

Definition at line 487 of file grid.py.

Referenced by grid.Color.set().


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