Difference between revisions of "Canvas Draw"

From FlightGear wiki
Jump to: navigation, search
(References)
m (Background: https://sourceforge.net/p/flightgear/mailman/message/36482041/)
Line 2: Line 2:
  
 
== Background ==
 
== Background ==
a library of functions to draw more complex things on a canvas? I know some people prefere Inkscape/SVG and others prefer nasal scripting. I started my work with Inkscape but I tend to implement the PFD and parts of MFD scripted. I guess I could find lots of code in all the different aircrafts for drawing things like speed tape, compass, engine instruments etc. but as far as I see there is nothing like a
+
a library of functions to draw more complex things on a canvas? While some people prefer Inkscape/SVG and others prefer nasal scripting, this page is intended to document a library for procedural drawing.
canvas.draw library
+
 
I think it would be good to start such thing and my first elements would be a compass rose and a linear tape (e.g. for speed and altitude), stylable of course. So the library should also contain a structure to organize styles.
+
Specifically, to help implement elements commonly used for the PFD and parts of MFD.  
 +
 
 +
While people can certainly find lots of code in all the different aircraft for drawing things like speed tape, compass, engine instruments etc. but as far as I see there is nothing like a canvas.draw library as of 12/2018.
 +
 
 +
It seems, it would be good to start such thing and my first elements would be a compass rose and a linear tape (e.g. for speed and altitude), stylable of course. So the library should also contain a structure to organize styles.
  
 
== Related ==
 
== Related ==

Revision as of 14:23, 1 December 2018

This article is a stub. You can help the wiki by expanding it.

Background

a library of functions to draw more complex things on a canvas? While some people prefer Inkscape/SVG and others prefer nasal scripting, this page is intended to document a library for procedural drawing.

Specifically, to help implement elements commonly used for the PFD and parts of MFD.

While people can certainly find lots of code in all the different aircraft for drawing things like speed tape, compass, engine instruments etc. but as far as I see there is nothing like a canvas.draw library as of 12/2018.

It seems, it would be good to start such thing and my first elements would be a compass rose and a linear tape (e.g. for speed and altitude), stylable of course. So the library should also contain a structure to organize styles.

Related

References

References