The Scene Object

{
    "name": "test",
    "animations": Array<Animation>
}

Attributes

name (string)

The name of your scene.

Example:

"name": "test"

animations (array of Animation objects)

An array of animations making up a scene.

Example:

"animations": [
    {
        "type": "add",
        "lines": "console.log(\"Hello World!\")\n",
        "start": "1", 
        "end": "2" 
    }
]

width (integer)

The width resolution of the scene in pixels.

Example:

"width": "1080"

height (integer)

The height resolution of the scene in pixels.

Example:

"height": "1920"

lang (integer)

The programming language of the scene.

Example:

"lang": "javascript"

Available values: python, php, rust, go, yaml, json, sql, markdown


fontSize (integer)

The font size in pixels used to display the code in the scene.

Example:

"fontSize": "20px"

fontFamily (string)

The font family used to display the code in the scene.

Example:

"fontFamily": "RobotoMono"

Available values: Monospace, RobotoMono, AnonymousPro, IBMPlexMono, PressStart2P


maxLineLength (integer)

The maximum number of characters allowed per line before wrapping.

Example:

"maxLineLength": "30"

colorPalette (string)

The color palette of the scene.

Example:

"theme": "dark"

Available values: dark, light, sepia