Forum: GNU Radio gr-trellis visual representation of FSM as a trellis

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
C369ebbe1655201988e376af57460f23?d=identicon&s=25 Achilleas Anastasopoulos (Guest)
on 2007-02-06 03:03
(Received via mailing list)

this is really cool!

Can you assign different colors
(or linestyles) to different input symbols?

93bcc40cd07916689fe7de8afde22af1?d=identicon&s=25 Tim Meehan (Guest)
on 2007-02-06 12:24
(Received via mailing list)

In the original method line styles are handeled with the following line.

 trellis_fname << " stroke-dasharray = \"3," <<  branch_num << "\" ";

"branch_num"  is the equiv to the input symbol number.  So for two
input symbols the 0th symbol will be a solid line and symbol 1 would
be a 3,1 dashed line.  I was thinking of overloading the method so it
could be called with a vector of strings (one for each input symbol)
where each string describes  SVG parameters for linestyles.  That way
you could assign colors or any SVG line style you desired.

After I read the style guide, I will clean up the code and resubmit
with suggested changes.

This topic is locked and can not be replied to.