Lines Matching defs:center
107 /** Returns a shader that generates a radial gradient given the center and radius.
109 @param center The center of the circle for this gradient
111 @param colors The array[count] of colors, to be distributed between the center and edge of the circle
114 the the colors are distributed evenly between the center and edge of the circle.
120 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
124 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
127 return MakeRadial(center, radius, colors, pos, count, mode, 0, nullptr);
130 /** Returns a shader that generates a radial gradient given the center and radius.
132 @param center The center of the circle for this gradient
134 @param colors The array[count] of colors, to be distributed between the center and edge of the circle
137 the the colors are distributed evenly between the center and edge of the circle.
143 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
147 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
150 return MakeRadial(center, radius, colors, std::move(colorSpace), pos, count, mode,
194 /** Returns a shader that generates a sweep gradient given a center.
196 @param cx The X coordinate of the center of the sweep
197 @param cx The Y coordinate of the center of the sweep
198 @param colors The array[count] of colors, to be distributed around the center, within
226 /** Returns a shader that generates a sweep gradient given a center.
228 @param cx The X coordinate of the center of the sweep
229 @param cx The Y coordinate of the center of the sweep
230 @param colors The array[count] of colors, to be distributed around the center, within