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
11
#include "
include/core/SkPathEffect.h
"
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
SkPathEffect.h
SkScalar
float SkScalar
Definition:
SkScalar.h:14
SkDiscretePathEffect
This path effect chops a path into discrete segments, and randomly displaces them.
Definition:
SkDiscretePathEffect.h:17
SkDiscretePathEffect::Make
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...
SkDiscretePathEffect::RegisterFlattenables
static void RegisterFlattenables()
sk_sp< SkPathEffect >
include
effects
SkDiscretePathEffect.h
Generated by
Doxygen
1.9.1 on Tue Nov 14 2023