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

x/caviar/src/entities/text/mod.ts>Text

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

Constructors

new
Text(
scene: Scene,
font: string,
text: string,
x: number,
y: number,
width: number,
height: number,
size?: number,
color?: RGBA | string,
)

Properties

color: RGBA
font: any
height: number
surface: any
text: string
texture: any
width: number

Methods

render(world: World)