Skip to main content
Module

x/caviar/mod.ts>World#setBackground

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

Sets the background to the given color

Parameters

color: string | RGBA