bevy_typst_textures 0.3.0

A simple Resource for generating rasterized textures out of either standalone .typ files or structured, zipped typst projects, built on typst-as-lib.
Documentation

// Assuming that this is run with a 1pt = 1px ratio, this will produce a
// 256 by 256 texture.
#set page(
  width: 256pt,
  height: 256pt,
  fill: none,
  margin: 0pt,
)

#import sys : inputs

// This uses the bundled font, but if you want to use the "default" fonts
// included by typst then set the "typst-asset-fonts" feature.
#set text(fill: white, font: "Atkinson Hyperlegible Next", size: 25pt)

#rect(fill: gradient.conic(..color.map.rainbow), width: 100%, height: 100%)

#place(center + horizon)[
  Hello from Typst :)
  #inputs.at("text", default: "")
]