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

x/caviar/src/entities/sprites/mod.ts>FrameBuffer

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Latest
class FrameBuffer
extends Entity
import { FrameBuffer } from "https://deno.land/x/caviar@2.6.9/src/entities/sprites/mod.ts";

Constructors

new
FrameBuffer(
world: World,
buffer: Uint8Array,
width?: number,
height?: number,
)

Properties

height: number
rawData: Uint8Array
requestStart: boolean
width: number

Methods

collides(x: number, y: number): boolean
setBuffer(buffer: Uint8Array)