Getting Started
In this guide we will be making a few simple commands using aoi.canvas.
This guide assumes you have a basic understanding of aoi.js. It also assumes you defined your AoiClient
as client
Installation
Setup
Before creating your first image
In order to create images using aoi.canvas, we need to learn a few basic functions.
The following functions will be used in almost every sngle command:
- $createCanvas - to create canvases.
- $attachCanvas - to send canvases.
We also need to know about:
- $drawImage - to add external images. (like user avatars)
- $fillRect - to draw rects on your canvas.
- $fillText - to write text on your canvas.