sugarloaf 0.2.23

Sugarloaf is Rio rendering engine, designed to be multiplatform. It is based on WebGPU, Rust library for Desktops and WebAssembly for Web (JavaScript). This project is created and maintained for Rio terminal purposes but feel free to use it.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::components::core::image;
// use crate::components::core::svg;
use crate::components::core::shapes::Rectangle;

#[derive(Debug, Clone)]
/// A raster image.
pub struct Raster {
    /// The handle of a raster image.
    pub handle: image::Handle,

    /// The bounds of the image.
    pub bounds: Rectangle,
}