|
1 | 1 | use crate::{resources, DrawingDriver};
|
2 | 2 | use skia_safe::{
|
3 |
| - corner_path_effect, dash_path_effect, discrete_path_effect, gradient_shader, |
| 3 | + color_filters, corner_path_effect, dash_path_effect, discrete_path_effect, gradient_shader, |
4 | 4 | line_2d_path_effect, paint, path_1d_path_effect, path_2d_path_effect, perlin_noise_shader,
|
5 |
| - scalar, table_color_filter, AutoCanvasRestore, BlendMode, BlurStyle, Canvas, Color, |
6 |
| - ColorFilters, Font, MaskFilter, Matrix, Paint, Path, PathEffect, Point, Rect, Shaders, |
7 |
| - TextBlob, TileMode, Typeface, |
| 5 | + scalar, shaders, table_color_filter, AutoCanvasRestore, BlendMode, BlurStyle, Canvas, Color, |
| 6 | + Font, MaskFilter, Matrix, Paint, Path, PathEffect, Point, Rect, TextBlob, TileMode, Typeface, |
8 | 7 | };
|
9 | 8 | use std::path;
|
10 | 9 |
|
@@ -294,7 +293,7 @@ fn draw_turbulence_perlin_noise_shader(canvas: &mut Canvas) {
|
294 | 293 | fn draw_compose_shader(canvas: &mut Canvas) {
|
295 | 294 | let colors = [Color::BLUE, Color::YELLOW];
|
296 | 295 | let paint = &mut Paint::default();
|
297 |
| - paint.set_shader(Shaders::blend( |
| 296 | + paint.set_shader(shaders::blend( |
298 | 297 | BlendMode::Difference,
|
299 | 298 | gradient_shader::radial(
|
300 | 299 | (128.0, 128.0),
|
@@ -328,7 +327,7 @@ fn draw_mask_filter(canvas: &mut Canvas) {
|
328 | 327 | fn draw_color_filter(c: &mut Canvas) {
|
329 | 328 | fn f(c: &mut Canvas, (x, y): (scalar, scalar), color_matrix: &[scalar; 20]) {
|
330 | 329 | let paint = &mut Paint::default();
|
331 |
| - paint.set_color_filter(ColorFilters::matrix_row_major(color_matrix)); |
| 330 | + paint.set_color_filter(color_filters::matrix_row_major(color_matrix)); |
332 | 331 |
|
333 | 332 | let image = &resources::mandrill();
|
334 | 333 |
|
|
0 commit comments