[oden] Circles work

This commit is contained in:
John Doty 2023-08-25 15:32:35 -07:00
parent 26a3939012
commit 020bb8f124
7 changed files with 83 additions and 51 deletions

View file

@ -52,6 +52,18 @@ export function spr(
core.spr(x, y, w, h, sx, sy, sw, sh);
}
/**
* Draw a circle.
*
* @param x - The x coordinate of the center of the circle.
* @param y - The y coordinate of the center of the circle.
* @param r - The radius of the circle.
* @param s - The stroke width of the circle.
*/
export function circle(x: number, y: number, r: number, s: number) {
core.circle(x, y, r, s);
}
export class Texture {
#id: number;
constructor(id: number) {