diff --git a/src/gfx/screen.ts b/src/gfx/screen.ts index 1d08c7b..ae3ef88 100644 --- a/src/gfx/screen.ts +++ b/src/gfx/screen.ts @@ -66,6 +66,12 @@ export class Screen { this._ctx.fillStyle = prevColor; } + /* + **************************************************************************** + * drawPixel* + **************************************************************************** + */ + /** * Makes pixel at given position transparent. */ @@ -94,6 +100,12 @@ export class Screen { this.drawRect((x | 0), (y | 0), 1, 1); } + /* + **************************************************************************** + * drawLine* + **************************************************************************** + */ + /** * Draws line between two points. */ @@ -122,6 +134,12 @@ export class Screen { this.line(x1, y1, x2, y2, true); } + /* + **************************************************************************** + * drawRect* + **************************************************************************** + */ + /** * Draws rectangle border with upper-left corner at specified position and provided width and height. */ @@ -168,6 +186,12 @@ export class Screen { this._ctx.clearRect((x | 0), (y | 0), w, h); } + /* + **************************************************************************** + * drawCircle* + **************************************************************************** + */ + /** * Draws circle border with its center at specified position with given radius. */ @@ -204,6 +228,12 @@ export class Screen { this.circ(x, y, radius, true, true); } + /* + **************************************************************************** + * drawTexture* + **************************************************************************** + */ + /** * Draws entire texture at given position, with optional scaling by `w`, `h` parameters. * Allow for horizontal and vertical flipping using `FLIP_H` and `FLIP_V` bitmask options.