Function photon_rs::effects::__wasm_bindgen_generated_oil
source · pub extern "C" fn __wasm_bindgen_generated_oil(
arg0: <PhotonImage as RefMutFromWasmAbi>::Abi,
arg1: <i32 as FromWasmAbi>::Abi,
arg2: <f64 as FromWasmAbi>::Abi
) -> <() as ReturnWasmAbi>::Abi
Expand description
Turn an image into an oil painting
Arguments
img
- A PhotonImage that contains a view into the image.radius
- Radius of each paint particleintesnity
- How artsy an Image should be
Example
// For example, to oil an image of type `PhotonImage`:
use photon_rs::effects::oil;
use photon_rs::native::open_image;
let mut img = open_image("img.jpg").expect("File should open");
oil(&mut img, 4i32, 55.0);