Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sdl2/mod.ts>Canvas#fillRect

SDL2 module for Deno
Latest
method Canvas.prototype.fillRect
import { Canvas } from "https://deno.land/x/sdl2@0.9.0/mod.ts";

Fill a rectangle on the current rendering target with the drawing color.

Parameters

x: number

the x coordinate of the rectangle

y: number

the y coordinate of the rectangle

w: number

the width of the rectangle

h: number

the height of the rectangle