texture
texture(
path,opts?):TextureHandle
Defined in: renderer/src/assets.ts:68
Create a typed asset handle for a texture.
const Hero = texture("hero.png");const Tiles = texture("tiles.png", { scaleMode: "nearest" });Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/renderer.md.