Jan 4, 2012

Set nodes` color in NS2 simulation program


This is a pretty tricky way to hit the target. And we can change the color at any time.


set ns [new Simulator]

set node [$ns node 0]

$ns at 0.0 "$node color red"

$ns at 1.0 "$node color blue"

No comments:

Post a Comment