infuse 0.5.0

Minimalist wasm based webgl renderer

infuse version Build status Documentation

Minimalist wasm based webgl renderer.

Example usage:

use wasm_bindgen::prelude::*;

mod renderer;
use renderer::{RenderItem, Renderer};

pub fn start() -> Result<(), JsValue> {
    let renderer = Renderer::new()?;

    let render_item = RenderItem::new(
        vec![-0.7, -0.7, 0.0, 0.7, -0.7, 0.0, 0.0, 0.7, 0.0],

    let render_items = vec![render_item];



Project creation:

This can be done easily using cargo-generate.

  • Install cargo-generate with:
cargo install cargo-generate
  • Create a new project with:
cargo generate --git
  • Install the deps:
yarn install
  • Serve the app:
yarn run serve