SVG Dynamic Themes
Signal elements
- | File name: | "signalmain-r.svg" |
- | Name attribute: | "signalmain" |
Besides the track color the colors for the red, green, yellow and white state are coded.
To support different addressing modes of this signal the states should have a list of the state name as well as the state number:
- state="red,0"
- state="green,1"
- state="yellow,2"
- state="white,3"
For coding the LED attribute see LED Attribute Values .
Multi aspect signal elements
- | File name: | "hl_signalaspect-0.svg" |
- | Name attribute: | "hl_signalaspect" |
A multi aspect signal is coded as a list of g states.
The first state must be coded as <g state="all"> which in general
- describes the track,
- the basic signal symbol with no lights and
- the placeholder for the ID of the Rocrail plan object.
The next g states describe the states of the signal starting with state 0 and ending with the last state - in this state it is state 23.
The file name requires a prefix (here "hl_") to be able to use more than one multi aspect signal.
The file name of multi aspect signals is constructed: prefix + "signalaspect-0" + ".svg" .
The file name of this example is "hl_signalaspect-0.svg".
For coding the LED attribute see LED Attribute Values .