1use crate::{scalar, PathEffect};
2use skia_bindings as sb;
3
4impl PathEffect {
5 pub fn corner_path(radius: scalar) -> Option<Self> {
6 new(radius)
7 }
8}
9
10pub fn new(radius: scalar) -> Option<PathEffect> {
11 PathEffect::from_ptr(unsafe { sb::C_SkCornerPathEffect_Make(radius) })
12}
13