Cogent Core Docs

0%

Loading...

Static preview:

Cogent Core DocsWidgetsMedia

Canvases

Cogent Core provides customizable canvases that allow you to arbitrarily draw anything that you want. All canvas coordinates are on a normalized 0-1 scale.

You can set the function used to draw the canvas:

You can draw lines:

You can change the width of lines:

You can draw circles:

You can draw ellipses:

You can draw elliptical arcs:

You can draw regular polygons:

You can draw quadratic arcs:

You can draw cubic arcs:

You can change the size of a canvas:

You can make a canvas grow to fill the available space: