module:Heart

module:Heart

Heart class
heart demo

Constructor

# new module:Heart(positionDefinition, radius, optionsopt)

Heart constructor

Parameters:
Name Type Attributes Description
positionDefinition PositionDefinition

Position of the center of the heart

radius Number

radius The distance from center of heart

options ComponentOptions <optional>

Drawing options

Extends

Members

# radius :Number

Type:
  • Number

Methods

# (static) from(definition) → {Heart}

Parameters:
Name Type Description
definition Object

Heart definition

Returns:
Type
Heart

# trace(path) → {Heart}

Draw the Heart

Parameters:
Name Type Description
path Path2D

Drawing context

Returns:

Itself

Type
Heart