Skip to content

Latest commit

 

History

History
49 lines (28 loc) · 748 Bytes

File metadata and controls

49 lines (28 loc) · 748 Bytes

Frame

A display frame.


Constructor

new Frame(data);

Arguments

  • dataArray<Pixel> The frame's 1-dimensional (left-to-right, top-to-bottom) data array. Any index after Screen Width * Screen Height will not be displayed; no max size is enforced.

Methods

static fromString(string)

Convert a string to a frame.

static fromString(string)

Arguments

  • stringstring The string to convert.

Returns

  • Frame The generated Frame.

static from2DArray(array)

Convert a 2D array of Pixels to a Frame.

static from2DArray(array)

Arguments

  • arrayArray<Array<Pixel>> The array to convert.