8 #ifndef SkGradientShader_DEFINED
9 #define SkGradientShader_DEFINED
26 kInterpolateColorsInPremul_Flag = 1 << 0,
42 const SkColor colors[],
const SkScalar pos[],
int count,
44 uint32_t flags,
const SkMatrix* localMatrix);
46 const SkColor colors[],
const SkScalar pos[],
int count,
48 return MakeLinear(pts, colors, pos, count, mode, 0, NULL);
66 uint32_t flags,
const SkMatrix* localMatrix);
70 return MakeLinear(pts, colors, std::move(colorSpace), pos, count, mode, 0, NULL);
87 const SkColor colors[],
const SkScalar pos[],
int count,
89 uint32_t flags,
const SkMatrix* localMatrix);
91 const SkColor colors[],
const SkScalar pos[],
int count,
93 return MakeRadial(center, radius, colors, pos, count, mode, 0, NULL);
112 uint32_t flags,
const SkMatrix* localMatrix);
116 return MakeRadial(center, radius, colors, std::move(colorSpace), pos, count, mode, 0, NULL);
126 const SkPoint& end, SkScalar endRadius,
127 const SkColor colors[],
const SkScalar pos[],
129 uint32_t flags,
const SkMatrix* localMatrix);
131 const SkPoint& end, SkScalar endRadius,
132 const SkColor colors[],
const SkScalar pos[],
134 return MakeTwoPointConical(start, startRadius, end, endRadius, colors, pos, count, mode,
145 const SkPoint& end, SkScalar endRadius,
149 uint32_t flags,
const SkMatrix* localMatrix);
151 const SkPoint& end, SkScalar endRadius,
155 return MakeTwoPointConical(start, startRadius, end, endRadius, colors,
156 std::move(colorSpace), pos, count, mode, 0, NULL);
172 const SkColor colors[],
const SkScalar pos[],
int count,
173 uint32_t flags,
const SkMatrix* localMatrix);
175 const SkColor colors[],
const SkScalar pos[],
int count) {
176 return MakeSweep(cx, cy, colors, pos, count, 0, NULL);
193 const SkScalar pos[],
int count,
194 uint32_t flags,
const SkMatrix* localMatrix);
197 const SkScalar pos[],
int count) {
198 return MakeSweep(cx, cy, colors, std::move(colorSpace), pos, count, 0, NULL);
201 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
Definition: SkPoint.h:156
The SkMatrix class holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:28
Definition: SkColor.h:179
Flags
Definition: SkGradientShader.h:20
SkGradientShader hosts factories for creating subclasses of SkShader that render linear and radial gr...
Definition: SkGradientShader.h:18
uint32_t SkColor
32 bit ARGB color value, not premultiplied.
Definition: SkColor.h:28
TileMode
Definition: SkShader.h:43