# CodeHS JavaScript Library

This is documentation for all JavaScript helpers used for Graphics, Console and Data Structures.

## Graphics

The Graphics module is used in all CodeHS JavaScript programs that draw to the canvas. An instance of CodeHSGraphics is needed for interacting with the canvas and drawing elements.

#### Classes

- Arc
- Circle
- Color
- Line
- Oval
- Polygon
- Rectangle
- Text
- Thing
- WebImage

## Console

The Console module is used in JavaScript programs that read user input and write to the console. All of the console methods are defined in CodeHSConsole then attached to the window so other JavaScript programs can access them.

## Data Structures

CodeHS has its own definitions for common data structures that make writing code easier.

#### Classes

- Grid
- Queue
- Set
- Stack

## Randomizer

module:Randomizer is a module used throughout the JavaScript library. Color utilizes it to generate random colors and it's often used to randomly place elements in the canvas.