Skia
2D Graphics Library
SkDiscretePathEffect.h
Go to the documentation of this file.
1 /*
2  * Copyright 2006 The Android Open Source Project
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkDiscretePathEffect_DEFINED
9 #define SkDiscretePathEffect_DEFINED
10 
12 
17 class SK_API SkDiscretePathEffect {
18 public:
32  static sk_sp<SkPathEffect> Make(SkScalar segLength, SkScalar dev, uint32_t seedAssist = 0);
33 
34  static void RegisterFlattenables();
35 };
36 
37 #endif
float SkScalar
Definition: SkScalar.h:14
This path effect chops a path into discrete segments, and randomly displaces them.
Definition: SkDiscretePathEffect.h:17
static sk_sp< SkPathEffect > Make(SkScalar segLength, SkScalar dev, uint32_t seedAssist=0)
Break the path into segments of segLength length, and randomly move the endpoints away from the origi...
static void RegisterFlattenables()