mirror of
https://github.com/penpot/penpot.git
synced 2025-05-17 17:36:12 +02:00
🎉 Shape opacity for wasm render
This commit is contained in:
parent
e675ff6db5
commit
d09e5ef9b3
5 changed files with 19 additions and 1 deletions
|
@ -166,6 +166,14 @@ pub extern "C" fn set_shape_blend_mode(mode: i32) {
|
|||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn set_shape_opacity(opacity: f32) {
|
||||
let state = unsafe { STATE.as_mut() }.expect("got an invalid state pointer");
|
||||
if let Some(shape) = state.current_shape() {
|
||||
shape.opacity = opacity;
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
init_gl();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue