Draws a polyline to a Canvas from a list of points using the provided Texture.

Constructors

TexturedLinePainter(List<Point> _points, List<Color> colors, List<double> widths, [ Texture texture, List<double> textureStops ])

Creates a painter that draws a polyline with a texture.

Properties

calculatedTextureStops List<double>

The textureStops used if no explicit texture stops has been provided.

read-only
colors List<Color>

The color of each point on the polyline. The color of the line will be interpolated between the points.

read / write
hashCode int

Get a hash code for this object.

read-only, inherited
length double

The length of the line.

read-only
points List<Point>

The points that makes up the polyline.

read / write
removeArtifacts bool

If true, the textured line attempts to remove artifacts at sharp corners on the polyline.

read / write
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited
texture Texture

The texture this line will be drawn using.

read / write
textureLoopLength double

The length, in points, that the texture is stretched to. If the textureLoopLength is shorter than the line, the texture will be looped.

read / write
textureStopOffset double

The offset of the texture on the line.

read / write
textureStops List<double>

Defines the position in the texture for each point on the polyline.

read / write
transferMode TransferMode

The TransferMode used to draw the line to the Canvas.

read / write
widths List<double>

The width of the line at each point on the polyline.

read / write

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
paint(Canvas canvas) → void

Paints the line to the canvas.

toString() String

Returns a string representation of this object.

inherited