Skip to main content
Module

x/caviar/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@1.0.2/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