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.
Properties
Section titled “Properties”The props the runtime declares for this component, with their defaults and accepted ranges.
| Prop | Default | Range |
|---|---|---|
cellSize |
16 |
1 ≤ x ≤ 128 |
characters |
" . |
|
font |
"inter" |
|
fontSize |
54 |
8 ≤ x ≤ 256 |
invert |
false |
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
Render the scene as ASCII textThe camera's ASCII effect redraws a sunny courtyard as text characters. Buttons switch between the full-colour look and a green terminal, and between fine and coarse cells.
Press Colour, Terminal or Coarse, and orbit the camera to watch the characters follow the shapes. Drag to orbit the camera, scroll to zoom.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(AsciiEffectComponent); if (component) log(component.props);}