CurveUnion

Element

The path forming the union of two closed path elements. The elements may be of type curve, circle, polygon, inequality. If one element is a curve, it has to be closed. The resulting element is of type curve.

Usage (signatures)
board.create('curveunion', [curve1, curve2]);
Parameters
Name Type Description
curve1 Curve | Polygon | Circle

First element defining the union

curve2 Curve | Polygon | Circle

Second element defining the union

Example
var f = board.create('functiongraph', ['cos(x)']);
var ineq = board.create('inequality', [f], {inverse: true, fillOpacity: 0.1});
var circ = board.create('circle', [[0,0], 4]);
var clip = board.create('curveunion', [ineq, circ], {fillColor: 'yellow', fillOpacity: 0.6});

Attributes

Own

none

Inherited

Members

Own

none

Inherited

Methods

Own

none

Inherited

Events

Own

none

Inherited

Extends