[oden] Circles work
This commit is contained in:
parent
26a3939012
commit
020bb8f124
7 changed files with 83 additions and 51 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue