glemy/render

Types

pub type Canvas
pub type ColoredEntity =
  #(entity.Entity, #(Float, Float, Float))

Values

pub fn get_canvas(id: String) -> Canvas
pub fn render_entities_to_bytes(
  entities: List(#(entity.Entity, #(Float, Float, Float))),
  bounds: bounds.Bounds,
) -> promise.Promise(Result(List(Int), String))
pub fn render_entities_to_canvas(
  entities: List(#(entity.Entity, #(Float, Float, Float))),
  bounds: bounds.Bounds,
  canvas: Canvas,
) -> promise.Promise(Result(List(Int), String))
pub const texture_height: Int
pub const texture_width: Int
Search Document