Please enable JavaScript to use CodeHS

Digital Art with p5.js Glossary

Flashcards

Course:

Module:

Lesson:

Search:

Animation General

A form of art that rapidly displays a sequence of still images to create an illusion of movement

Frame General

A single image in a sequence of pictures

Frame Rate (Frames Per Second) JavaScript

The rate at which consecutive frames are captured or displayed

frameRate(fps) JavaScript

Specifies the number of frames to be displayed every second

frameCount JavaScript

A p5.js system variable that contains the number of frames that have been displayed since the program started

Color Gradient General

A gradual blend of one color to another.

Shape Transformations General

The changes done in the shapes on a coordinate plane by scaling, translating, or rotating.

Translation General

Slides or moves the shape

Scale (Dialation) JavaScript

Expands or contracts the shape

Degree JavaScript

A measurement of a plane angle in which one full rotation is 360 degrees

Radian General

The SI unit for measuring angles

`translate(x, y)` JavaScript

Sets the amount to shift the origin of the canvas. The x parameter specifies left/right translation, the y parameter specifies up/down translation.

`rotate(angle)` JavaScript

Rotates a shape by the amount specified by the angle parameter

`scale(percent)` JavaScript

Increases or decreases the size of a shape by expanding or contracting vertices.

Rotation General

Rotates or turns the shape around an axis