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

x/sdl2/mod.ts>Canvas#clear

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

Clear the current rendering target with the drawing color.