Skip to content

Latest commit

 

History

History
72 lines (37 loc) · 1.55 KB

File metadata and controls

72 lines (37 loc) · 1.55 KB

Cairo Circuit Map

Requires Cairo to be installed

Shows a simple plot of the path, but no map behind it...

<component type="cairo_circuit_map" size="256" />

06-cairo-circuit-map-0.png

Colours

You can change the colours with

fill, outline for the path, and loc-fill, loc-outline for the "location" dot.

<component type="cairo_circuit_map" size="256" fill="255,255,0" outline="255,0,255" />

06-cairo-circuit-map-1.png

<component type="cairo_circuit_map" size="256" loc-fill="255,255,0" loc-outline="255,0,255" />

06-cairo-circuit-map-2.png

Line width

You can change the line widths with line-width and loc-size - The numbers are relative to the size of the overall widget, so 1 means a line that is the whole width of the widget.

The map will be simplified to reduce the number of points as the line width increases.

<component type="cairo_circuit_map" size="256" line-width="0.05" loc-size="0.05" />

06-cairo-circuit-map-3.png

Rotation

You can rotate the drawing with rotate and specify the clockwise rotation angle in degrees.

<component type="cairo_circuit_map" size="256" rotate="45" />

06-cairo-circuit-map-4.png

History

01/2023 - Some of the attributes changed from having _ characters to - characters