Skip to main content

Class: P5AsciifyGrid

Defined in: Grid.ts:6

Manages the grid for the ASCII rendering pipeline of an P5Asciifier instance.

Accessors

cellHeight

Get Signature

get cellHeight(): number

Defined in: Grid.ts:107

Returns the height of each cell in the grid.

Returns

number


cellWidth

Get Signature

get cellWidth(): number

Defined in: Grid.ts:102

Returns the width of each cell in the grid.

Returns

number


cols

Get Signature

get cols(): number

Defined in: Grid.ts:112

Returns the number of columns in the grid.

Returns

number


fixedDimensions

Get Signature

get fixedDimensions(): boolean

Defined in: Grid.ts:142

Returns true if the grid dimensions (columns and rows) are fixed, or false if they are responsive based on the canvas dimensions.

Returns

boolean


height

Get Signature

get height(): number

Defined in: Grid.ts:127

Returns the total height of the grid.

Returns

number


offsetX

Get Signature

get offsetX(): number

Defined in: Grid.ts:132

Returns the offset to the outer canvas borders on the x-axis when centering the grid.

Returns

number


offsetY

Get Signature

get offsetY(): number

Defined in: Grid.ts:137

Returns the offset to the outer canvas borders on the y-axis when centering the grid.

Returns

number


rows

Get Signature

get rows(): number

Defined in: Grid.ts:117

Returns the number of rows in the grid.

Returns

number


width

Get Signature

get width(): number

Defined in: Grid.ts:122

Returns the total width of the grid.

Returns

number