Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/sdl2/mod.ts>Rect

SDL2 module for Deno
Latest
class Rect
import { Rect } from "https://deno.land/x/sdl2@0.9.0/mod.ts";

A structure that contains the definition of a rectangle, with the origin at the upper left.

Constructors

new
Rect(
x: number,
y: number,
w: number,
h: number,
)

Properties

readonly
height

The height of the rectangle.

readonly
width

The width of the rectangle.

readonly
x

The x coordinate of the rectangle.

readonly
y

The y coordinate of the rectangle.

[_raw]: Uint32Array