Author
Travis Kirton


Creating Images

Included with the default installer are two images, "chop" and "rockies", that you can expriment with:

To create an image, simply specify the file name of the image like so:

let img = Image("imageName")

You don’t have to specify the extension

Example

let img = Image("chop")!
img.constrainsProportions = true
img.width = canvas.width
canvas.add(img)