Dart DocumentationthreePathAction

PathAction class

@author zz85 / http://www.lab4games.net/zz85/blog Creates free form 2d path using series of points, lines or curves.

class PathAction {
	static const String MOVE_TO = 'moveTo';
	static const String LINE_TO = 'lineTo';
	static const String QUADRATIC_CURVE_TO = 'quadraticCurveTo';    // Bezier quadratic curve
	static const String BEZIER_CURVE_TO = 'bezierCurveTo';  		// Bezier cubic curve
	static const String CSPLINE_THRU = 'splineThru';				// Catmull-rom spline
	static const String ARC = 'arc';								// Circle
	static const String ELLIPSE = 'ellipse';

	String action;
	var args;

	PathAction(this.action, this.args);
}

Static Properties

const String ARC #

static const String ARC = 'arc'

const String BEZIER_CURVE_TO #

static const String BEZIER_CURVE_TO = 'bezierCurveTo'

const String CSPLINE_THRU #

static const String CSPLINE_THRU = 'splineThru'

const String ELLIPSE #

static const String ELLIPSE = 'ellipse'

const String LINE_TO #

static const String LINE_TO = 'lineTo'

const String MOVE_TO #

static const String MOVE_TO = 'moveTo'

const String QUADRATIC_CURVE_TO #

static const String QUADRATIC_CURVE_TO = 'quadraticCurveTo'

Constructors

new PathAction(String action, args) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
PathAction(this.action, this.args);

Properties

String action #

String action

var args #

var args