Quickstart

How to create your ascii art in your device a small tutorial

Installation

npm install -g canvas-lang

Basic Usage

create .canvas files containing their CanvasScript code. For example, in myart.canvas

Creating Canvas-lang Files

canvas {
background "black";
text "Hello World" at (5, 5) size 10 color "green";
circle at (20, 10) radius 5 fill "blue";
}

Running Scripts

To run the files, use the command:

canvas-lang myart.canvas

Interactive Usage Examples

# Create an art file
echo 'canvas {
  background "black";
  text "My ASCII Art" at (5, 5) size 12 color "cyan";
  rect at (10, 10) width 10 height 5 fill "red";
}' > myart.canvas

# Run it
canvas-lang myart.canvas

Last updated