pushTranslate(x: number, y: number): void

Translate all subsequent draws.

pushTranslate(100, 100)

// this will be drawn at (120, 120)
drawText({
    text: "oh hi",
    pos: vec2(20, 20),
})

sincev2000.0

kaplay logo

Misc

Layer