View Source Garnish.Renderer.Cells (garnish v0.1.2)

Functions for working with canvas cells.

Summary

Functions

Computes a cell's background given a standardized attributes map.

Computes a cell's foreground given a standardized attributes map.

Given a starting position, orientation and cell template, returns a cell generator which can be used to iteratively generate a row or column of cells.

Functions

Computes a cell's background given a standardized attributes map.

Computes a cell's foreground given a standardized attributes map.

The foreground value is computed by taking the color's integer value and the integer values of any styling attributes (e.g., bold, underline) and computing the bitwise OR of all the values.

Link to this function

generator(position, orientation, template \\ Cell.empty())

View Source

Given a starting position, orientation and cell template, returns a cell generator which can be used to iteratively generate a row or column of cells.