Funvas class abstract
The custom canvas painter that you need to implement in order to paint a funvas.
This funvas can draw on the available area from (0, 0), which is the origin at the top left of its global position, to the size provided by the context x using the canvas c. All drawing happens in u.
Constructors
- Funvas()
Properties
- c → Canvas
-
The canvas for the funvas.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- s → Size
-
Available size which is a shortcut for
x.size
.no setter - x ↔ FunvasContext
-
The context for the funvas, providing the available size.
getter/setter pair
Methods
-
C(
double radians) → double -
Returns the cosine of
radians
, shorthand for cos. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
R(
num r, num g, num b, [num? o]) → Color - Returns an RGB(O) color, shorthand for Color.fromRGBO.
-
S(
double radians) → double -
Returns the sine of
radians
, shorthand for sin. -
s2q(
double dimension, {bool translate = true, bool clip = true}) → Size -
Scales the canvas to a square with side lengths of
dimension
. -
T(
double radians) → double -
Returns the tangent of
radians
, shorthand for tan. -
toString(
) → String -
A string representation of this object.
inherited
-
u(
double t) → void -
The update function for the funvas based on time
t
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited