Skip to content

Ascii Effect

Updated

Redraws the image as text characters.

Type
comp-ascii-effect
Script class
AsciiEffectComponent
Per entity
One
Version
1.4.0

Read about it in Stylize effects: what it does, how to use it from a script, and examples.

The props the runtime declares for this component, with their defaults and accepted ranges.

Prop Default Range
cellSize 16 1 ≤ x ≤ 128
characters " .:,'-^=*+?!|0#X%WM@"
font "inter"
fontSize 54 8 ≤ x ≤ 256
invert false

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(AsciiEffectComponent);
if (component) log(component.props);
}