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

x/caviar/src/entities/text/Text.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.2.2/src/entities/text/Text.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