Skip to main content

Interface: P5AsciifyRendererPlugin

Defined in: plugins/RendererPlugin.ts:12

Interface that all p5.asciify renderer plugins must implement.

Properties

PropertyModifierTypeDescriptionDefined in
authorreadonlystringAuthor of the pluginplugins/RendererPlugin.ts:26
descriptionreadonlystringDescription of what the renderer doesplugins/RendererPlugin.ts:20
idreadonlystringUnique identifier for the renderer typeplugins/RendererPlugin.ts:14
namereadonlystringHuman-readable name of the rendererplugins/RendererPlugin.ts:17
versionreadonlystringVersion of the pluginplugins/RendererPlugin.ts:23

Methods

create()

create(p, captureFramebuffer, grid, fontManager, options?): P5AsciifyRenderer<AsciiRendererOptions> | P5AsciifyAbstractFeatureRenderer2D<FeatureAsciiRendererOptions> | P5AsciifyRenderer2D<AsciiRendererOptions>

Defined in: plugins/RendererPlugin.ts:37

Creates a new instance of the renderer.

Parameters

ParameterTypeDescription
pp5The p5 instance.
captureFramebufferanyThe framebuffer containing the content to asciify.
gridP5AsciifyGridThe grid to use for the asciification.
fontManagerP5AsciifyFontManagerThe font manager to use.
options?FeatureAsciiRendererOptionsOptional options for the renderer.

Returns

P5AsciifyRenderer<AsciiRendererOptions> | P5AsciifyAbstractFeatureRenderer2D<FeatureAsciiRendererOptions> | P5AsciifyRenderer2D<AsciiRendererOptions>

A new instance of the renderer.