Class: Help

Help(_sketch, _mode)

Class that represents a help functionality for a sketch.

Constructor

new Help(_sketch, _mode)

Creates an instance of Help.

Parameters:
Name Type Description
_sketch object

The sketch to be used with this help functionality.

_mode boolean

The current mode of this help functionality.

Methods

draw()

Draws the help content.

draw_close_button(r, g, b)

Draws the close button in the top-right corner.

Parameters:
Name Type Description
r number

The red value of the color of the close button.

g number

The green value of the color of the close button.

b number

The blue value of the color of the close button.