Interface: P5AsciifyRendererPlugin
Defined in: plugins/RendererPlugin.ts:12
Interface that all p5.asciify renderer plugins must implement.
Properties
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
Parameter | Type | Description |
---|---|---|
p | p5 | The p5 instance. |
captureFramebuffer | any | The framebuffer containing the content to asciify. |
grid | P5AsciifyGrid | The grid to use for the asciification. |
fontManager | P5AsciifyFontManager | The font manager to use. |
options? | FeatureAsciiRendererOptions | Optional options for the renderer. |
Returns
P5AsciifyRenderer
<AsciiRendererOptions
> | P5AsciifyAbstractFeatureRenderer2D
<FeatureAsciiRendererOptions
> | P5AsciifyRenderer2D
<AsciiRendererOptions
>
A new instance of the renderer.