Rename project structure with /core and /client

This commit is contained in:
Keavon Chambers
2021-03-22 11:21:15 -07:00
parent a8a9e15a4a
commit 4407c671c5
64 changed files with 63 additions and 43 deletions
+13
View File
@@ -0,0 +1,13 @@
use graphite_editor::Color as InnerColor;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub struct Color(InnerColor);
#[wasm_bindgen]
impl Color {
#[wasm_bindgen(constructor)]
pub fn new(red: f32, green: f32, blue: f32, alpha: f32) -> Self {
Self(InnerColor::from_rgbaf32(red, green, blue, alpha).unwrap_throw())
}
}