You can color the nodes in NS2. It is bit tricky to color them in a wireless network. We can do this by following code.
set node0 [$ns node]
$node0 color "blue"
$ns at 0.0 "$node0 color blue"
set node0 [$ns node]
$node0 color "blue"
$ns at 0.0 "$node0 color blue"
thanks bro
ReplyDeleteyou're welcome
Deletethanku for useful information
ReplyDeleteyou're welcome!
DeleteHow many types of colors are possible ?
ReplyDeleteAnd also can we mention the color in hexadecimal values like for blue can we write #0000FF ??
thanks for the information.... !!! is it possible to fill a node inside with color..?? please help me..
ReplyDeletethx dude, u r the best.
ReplyDeleteCan you help me change color of the node using C++ in AODV.CC files..??
ReplyDeletethats really very very helpful... (y)
ReplyDeletethnku its really helpful
ReplyDeleteThx, finally I found a solution that it really worked in wireless! thumbs up :)
ReplyDelete