# Welcome to canvas-lang 🎨

Create Animated , Colorful ASCII-ART right in your terminals write few line .canvas code & get your desired ascii art !

<figure><img src="/files/DXluWjh0gGoTRe6GTuGD" alt=""><figcaption><p>ascii art in 2 line of code! </p></figcaption></figure>

<figure><img src="/files/cq5IJ07xntXwni1gYXKU" alt=""><figcaption><p>.canvas file in action!</p></figcaption></figure>

{% tabs %}
{% tab title="example #2" %}

<figure><img src="/files/fWdTSW9WgLGVJ30JJuFS" alt=""><figcaption><p>example #2 </p></figcaption></figure>
{% endtab %}

{% tab title="code #2" %}
example2.canvas

{% code overflow="wrap" lineNumbers="true" %}

```javascript

canvas {
  background "black";
  rainbow "Welcome to CanvasScript!" at (5, 5) duration 200;
  text "A simple graphics language" at (5, 15) size 8 color "cyan";
}

```

{% endcode %}
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="example #1" %}

<figure><img src="/files/GkneShfTSm5RJyMWoJgc" alt=""><figcaption><p>example #1</p></figcaption></figure>
{% endtab %}

{% tab title="code #1" %}
example1.canvas

{% code overflow="wrap" lineNumbers="true" %}

```javascript

canvas {
  background "white";
  circle at (10, 10) radius 5 fill "blue";
  text "Hello World" at (0, 20) size 10 color "green";
  rect at (20, 5) width 10 height 7 fill "red";
  line from (0, 0) to (30, 15) color "purple";
}


```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# 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://canvas-lang.gitbook.io/home/readme.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.
