Skip to content

Instantly share code, notes, and snippets.

@piguman3
Created September 13, 2023 01:44
Show Gist options
  • Save piguman3/9f88e7ee8c697fec4434dc32f9236bce to your computer and use it in GitHub Desktop.
Save piguman3/9f88e7ee8c697fec4434dc32f9236bce to your computer and use it in GitHub Desktop.

Plethora overlay glasses canvas() docs

getSize(number, number)

Get the size of this canvas.

addLines(points...:table[, color:number[, thickness:number]])

Create a new line loop, composed of many points.

getDocs([name: string]):string|table

Get the documentation for all functions or the function specified. Errors if the function cannot be found.

clear()

Remove all objects.

addLine(start:table, end:table[, color:number][, thickness:number]):table

Create a new line.

addGroup(position:table):table

Create a new object group.

addDot(position:table[, color:number][, size:number]):table

Create a new dot.

addTriangle(p1:table, p2:table, p3:table[, colour:number]):table

Create a new triangle, composed of three points.

addItem(position:table, contents:string[, scale:number]):table

Create an item icon.

addRectangle(x:number, y:number, width:number, height:number[, colour:number]):table

Create a new rectangle.

addPolygon(points...:table[, color:number]):table

Create a new polygon, composed of many points.

addText(position:table, contents:string[, colour:number[, size:number]]):table

Create a new text object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment