Library globals

Namespace globals . canvas . draw

View source

canvas_draw loader
03/2020 by jsb
if you add files to the draw subdirectory, add corresponding lines below in 
the main() function

Sub-namespaces

compass

canvas.draw library - compass rose module created 12/2018 by jsb WARNING: this is still under development, interfaces may change

draw

canvas.draw library created 12/2018 by jsb based on plot2D.nas from the oscilloscope add-on by R. Leibner Contains functions to draw path elements on an existing canvas group. - basic shapes - grids - scale marks Basic shapes: These are macros calling existing API command for path elements. They return a path element, no styling done. You can easily do by passing the returned element to other existing functions like setColor, e.g. var myCircle = canvas.circle(myCanvasGroup, 10, 30, 30).setColor(myColor) Grids: draw horizontal and vertical lines from the Oscilloscope add-on by rleibner with a few modifications Scale marks: Draw equidistant lines ("marker", "ticks") perpendicular to a baseline. Baseline can be a horizontal or vertical line or a part of a circle. This is a building block for compass rose and tapes.

scales

canvas.draw library - scale module for speed tape etc. created 12/2018 by jsb The Scale class combines draw.marks* with text labels to create scales/gauges to build speed tape, compass etc.

transform

canvas.transform library created 12/2018 by jsb based on plot2D.nas from the oscilloscope add-on by R. Leibner Contains functions to transform existing canvas elements.