Offset4 class

Class for storing and drawing four points of a polygon.

Constructors

Offset4(int p1, int p2, int p3, int p4, int row, int column, int rowSize, int colSize, List<Color> gradient)
Class for storing and drawing four points of a polygon.

Properties

colSize int
Max col size
getter/setter pair
column int
Position of polygon on grid
getter/setter pair
gradient List<Color>
Gradient to be applied to polygon
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
p1 int
Point 1
getter/setter pair
p2 int
Point 2
getter/setter pair
p3 int
Point 3
getter/setter pair
p4 int
Point 4
getter/setter pair
row int
Position of polygon on grid
getter/setter pair
rowSize int
Max row size
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

draw(Canvas canvas, List<Offset> points) → void
Draw the polygon on canvas
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited