Canvas SVG parser: Difference between revisions

Jump to navigation Jump to search
m
No edit summary
Line 20: Line 20:
msg.setColor(1,0,0);
msg.setColor(1,0,0);
</syntaxhighlight>
</syntaxhighlight>
You can lookup any type of element you want and modify them how you want (Add transformations, change colors/texts/coordinates etc.). You can also lookup an parent element and afterwards some of is child elements. By this you can use the same id multiple times but are still able to get access to every element (eg. Engine 1/Dial N1, Engine 2/Dial N1, etc.).


The result will look somehow like in the following image. The screen on the left side has been created by using the code snippet above and the screen on the right side is just a statically rendered version of the EICAS:
The result will look somehow like in the following image. The screen on the left side has been created by using the code snippet above and the screen on the right side is just a statically rendered version of the EICAS:

Navigation menu