A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
grid.Color Class Reference

Color class. More...

Public Member Functions

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

Public Attributes

 b
 blue
 
 g
 green
 
 r
 red
 

Detailed Description

Color class.

Definition at line 473 of file grid.py.

Constructor & Destructor Documentation

◆ __init__()

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()

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 grid.Color.b, ns3::AnimationInterface::Rgb.b, ns3::RandomRoomPositionAllocator::RoomInfo.b, Rgb.b, grid.Color.g, ns3::AnimationInterface::Rgb.g, Rgb.g, grid.Color.r, ns3::AnimationInterface::Rgb.r, and Rgb.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: