Skip to main content
Module

x/sdl2/mod.ts>Canvas#fillRects

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

Fill some number of rectangles on the current rendering target with the drawing color.

Parameters

rects:
[
number,
number,
number,
number,
]
[]

an array of Rect (x, y, w, h) structures representing the rectangles to fill