Class: DotElement

DotElement(g, center, options)

Define the Dot element. . The Dot element is a simple dot or circle on the canvas.

Constructor

new DotElement(g, center, options)

Create a new DotElement

Parameters:
Name Type Description
g p5.Graphics

The graphics object to draw to.

center Point

The position of the dot.

options DotElementOptions

A map of values to be loaded into instance variables.

Source:

Methods

draw()

Draw the Dot.

Source: