| 1 | use crate::ColorFilter; |
|---|---|
| 2 | use skia_bindings as sb; |
| 3 | |
| 4 | impl ColorFilter { |
| 5 | pub fn luma() -> Self { |
| 6 | new() |
| 7 | } |
| 8 | } |
| 9 | |
| 10 | pub fn new() -> ColorFilter { |
| 11 | ColorFilter::from_ptr(unsafe { sb::C_SkLumaColorFilter_Make() }).unwrap() |
| 12 | } |
| 13 |
| 1 | use crate::ColorFilter; |
|---|---|
| 2 | use skia_bindings as sb; |
| 3 | |
| 4 | impl ColorFilter { |
| 5 | pub fn luma() -> Self { |
| 6 | new() |
| 7 | } |
| 8 | } |
| 9 | |
| 10 | pub fn new() -> ColorFilter { |
| 11 | ColorFilter::from_ptr(unsafe { sb::C_SkLumaColorFilter_Make() }).unwrap() |
| 12 | } |
| 13 |