solandra library

Classes

Area
A simple class for (rectangular) parts of a canvas. Makes it easy to iterate over a canvas.
Case
A simple class to contain options for when have several possible actions and want to do one randomly
CubicEdge
Cubic bezier curve in path. Note that offers a novel API that is more human friendly: describe curve features in way that is invariant to size, rather than the standard control points (which are implicitly related to start and end points).
LineEdge
A line part of a path
PathEdge
Have lines or bezier curves, hence this parent class
Solandra
The main class for Solandra. Contains some state such as random number seed and some Paints
SolandraCustomPainter
SolandraPaintingWidget
simple custom painting widget; takes all available space and allows for drawing with Solandra. Can use with a subclass of SolandraCustomPainter.
SolandraRenderer
Flutter has create support for offscreen rendering to images but it is very boilerplate-y.
SolandraSimplePainting
SolandraSimplePaintingWidget
A very convenient way to draw with Flutter and Solandra.
SPath
A higher level Path class; allows both building and manipulation of paths, prior to drawing

Extensions

CentroidCalc on Iterable<Point<double>>
Calculation helper for collections of points
PointHelpers on Point<double>
Helpers for Point
SizeHelpers on Size
Helpers for Size (especially conversions)

Functions

downFrom(int n, dynamic callback(int i)) → void
Do the callback n times, argument decreases
times(int n, dynamic callback(int i)) → void
Do the callback n times, argument increases