Ratatouille v0.5.1 Ratatouille.Renderer.Cells View Source

Functions for working with canvas cells.

Link to this section 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.

Link to this section 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.