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

x/caviar/mod.ts>World#setBackground

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Latest
method World.prototype.setBackground
import { World } from "https://deno.land/x/caviar@2.6.9/mod.ts";

Sets the background to the given color

Parameters

color: string | RGBA