Skip to main content
Module

x/sdl2/mod.ts>Canvas#drawRect

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

Draw a rectangle on the current rendering target.

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