# Scenes

The scenes clear the screen and change the background. They will also clear the screen, removing the text, characters and images displayed.

You can either use images or css for the scenes. They will change with a fadeIn effect by default, currently that's the only animation available but more will be added.

If you'll use images, must declare them first, every scene image file must be placed in the scenes directory inside the img directory.

```javascript
var scene = {
    "mountain": "mountain.svg",
    "sea": "sea.png"
}
```

Now, to change the scene, just use the scene command. Syntax: "scene \[Scene Identifier]"

```javascript
"scene mountain"
```

If you'll use css to set your own background style, you must use the scene command as well. Syntax: "scene \[CSS]": These are valid ways to use it:

```javascript
"scene #fff"
"scene rgb(0,0,0)"
"scene url('img/scenes/mountain.svg')"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.monogatari.io/documentation/1.3.0/script/scenes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
