Skip to content

Instantly share code, notes, and snippets.

@JeremyLikness
Created March 7, 2019 18:34
Structures
#[wasm_bindgen]
pub struct Color {
r: u8,
g: u8,
b: u8
}
#[wasm_bindgen]
pub struct Plasma {
width: u32,
height: u32,
sine: Vec<i32>,
palette: Vec<Color>,
buffer: Vec<u8>,
pos1: u16,
pos3: u16,
tpos1: u16,
tpos2: u16,
tpos3: u16,
tpos4: u16
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment