Home Reference Source
import {ASCIITexture} from 'postprocessing'
public class | source

ASCIITexture

Extends:

three~CanvasTexture → ASCIITexture

An ASCII character lookup texture.

Constructor Summary

Public Constructor
public

constructor(options: Object)

Constructs a new ASCII texture.

Member Summary

Public Members
public

The cell count along each side of the texture.

public

The amount of characters in this texture.

Public Constructors

public constructor(options: Object) source

Constructs a new ASCII texture.

Params:

NameTypeAttributeDescription
options Object
  • optional

The options.

options.characters String
  • optional

The character set to render. Defaults to a common ASCII art charset.

options.font String
  • optional
  • default: "Arial"

The font.

options.fontSize Number
  • optional
  • default: 54

The font size in pixels.

options.size Number
  • optional
  • default: 1024

The texture size.

options.cellCount Number
  • optional
  • default: 16

The cell count along each side of the texture.

Public Members

public cellCount: Number source

The cell count along each side of the texture.

public characterCount: Number source

The amount of characters in this texture.