Go to the source code of this file.
|
| DEF_SIMPLE_GM (arccirclegap, canvas, 250, 250) |
|
| DEF_SIMPLE_GM (largecircle, canvas, 250, 250) |
|
| DEF_SIMPLE_GM (largeovals, canvas, 250, 250) |
|
| DEF_SIMPLE_GM (crbug_640176, canvas, 250, 250) |
|
◆ DEF_SIMPLE_GM() [1/4]
DEF_SIMPLE_GM |
( |
arccirclegap |
, |
|
|
canvas |
, |
|
|
250 |
, |
|
|
250 |
|
|
) |
| |
Definition at line 148 of file conicpaths.cpp.
148 {
149 canvas->translate(50, 100);
150 SkPoint c = { 1052.5390625f, 506.8760978034711f };
151 SkScalar radius = 1096.702150363923f;
153 paint.setAntiAlias(
true);
154 paint.setStroke(
true);
155 canvas->drawCircle(c, radius,
paint);
157 .
arcTo({0, 0}, {-39.00216443306411f, 400.6058925796476f}, radius)
158 .detach();
159 paint.setColor(0xff007f00);
161}
SkPathBuilder & arcTo(const SkRect &oval, SkScalar startAngleDeg, SkScalar sweepAngleDeg, bool forceMoveTo)
SkPathBuilder & moveTo(SkPoint pt)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
◆ DEF_SIMPLE_GM() [2/4]
DEF_SIMPLE_GM |
( |
crbug_640176 |
, |
|
|
canvas |
, |
|
|
250 |
, |
|
|
250 |
|
|
) |
| |
Definition at line 204 of file conicpaths.cpp.
204 {
212
214 paint.setAntiAlias(
true);
215 canvas->translate(125, 125);
217}
static float SkBits2Float(uint32_t bits)
◆ DEF_SIMPLE_GM() [3/4]
DEF_SIMPLE_GM |
( |
largecircle |
, |
|
|
canvas |
, |
|
|
250 |
, |
|
|
250 |
|
|
) |
| |
Definition at line 164 of file conicpaths.cpp.
164 {
165 canvas->translate(50, 100);
166 SkPoint c = { 1052.5390625f, 506.8760978034711f };
167 SkScalar radius = 1096.702150363923f;
169 paint.setAntiAlias(
true);
170 paint.setStroke(
true);
171 canvas->drawCircle(c, radius,
paint);
172}
◆ DEF_SIMPLE_GM() [4/4]
DEF_SIMPLE_GM |
( |
largeovals |
, |
|
|
canvas |
, |
|
|
250 |
, |
|
|
250 |
|
|
) |
| |
Definition at line 175 of file conicpaths.cpp.
175 {
176
179 paint.setAntiAlias(
true);
180 paint.setStroke(
true);
181 paint.setStrokeWidth(100);
182 canvas->drawOval(r,
paint);
185
187 paint.setStrokeWidth(1);
188 canvas->drawOval(r,
paint);
189
190
191 canvas->rotate(1.0f);
194 paint.setStroke(
true);
195 paint.setStrokeWidth(100);
196 canvas->drawOval(r,
paint);
200 paint.setStrokeWidth(1);
201 canvas->drawOval(r,
paint);
202}
constexpr SkColor SK_ColorLTGRAY
constexpr SkColor SK_ColorGRAY
constexpr SkColor SK_ColorDKGRAY
@ kStrokeAndFill_Style
sets to stroke and fill geometry
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
void offset(float dx, float dy)