> For the complete documentation index, see [llms.txt](https://canvas-lang.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://canvas-lang.gitbook.io/home/readme.md).

# 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="https://286041813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwHcYHze0zqyVt4wF8Sth%2Fuploads%2Fu6EkgIIQyJlqr1hTMmoR%2FScreenshot%202025-03-22%20at%202.15.03%E2%80%AFPM.png?alt=media&amp;token=2c465add-f1d4-4bfa-94a9-ea6ee24e7d09" alt=""><figcaption><p>ascii art in 2 line of code! </p></figcaption></figure>

<figure><img src="https://286041813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwHcYHze0zqyVt4wF8Sth%2Fuploads%2FHAJQ588K22OI75skVatU%2FScreenshot%202025-03-22%20at%202.13.27%E2%80%AFPM.png?alt=media&amp;token=eef39161-0546-4076-bfad-7cfed3c585cd" alt=""><figcaption><p>.canvas file in action!</p></figcaption></figure>

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

<figure><img src="https://286041813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwHcYHze0zqyVt4wF8Sth%2Fuploads%2FWkpo2BAXZZAHPetvJqJ6%2FScreenshot%202025-03-22%20at%204.29.39%E2%80%AFAM.png?alt=media&amp;token=f0d1c787-974b-4e91-866b-169a4184550b" 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="https://286041813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwHcYHze0zqyVt4wF8Sth%2Fuploads%2F26CFJKsY3XO9c86ziFLs%2FScreenshot%202025-03-22%20at%204.36.38%E2%80%AFAM.png?alt=media&amp;token=52e71163-0a94-4408-a87e-68b6eefb271c" 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 %}
