interface Shape
package geometrize.shape
implemented by Ellipse, Line, QuadraticBezier, Rectangle, RotatedEllipse, RotatedRectangle, Triangle
Interface for shape rasterization and manipulation.
Methods
getRawShapeData ():Array<Float>
Gets a vector of data that represents the shape geometry, the format varies depending on the ShapeType.
Returns:
The shape data.
getSvgShapeData ():String
Gets a string that represents a SVG element that describes the shape geometry.
Returns:
The SVG shape data that represents this shape.
mutate ():Void
Modifies the shape a little, typically with a random component. For improving the shape's fit to a bitmap (trial-and-error style).