Home
last modified time | relevance | path

Searched refs:kRadius (Results 1 - 11 of 11) sorted by relevance

/third_party/skia/gm/
H A Dstrokedlines.cpp35 constexpr int kRadius = 40; // radius of the snowflake variable
46 sin *= kRadius / 2.0f; in draw_fins()
47 cos *= kRadius / 2.0f; in draw_fins()
57 sin *= kRadius / 2.0f; in draw_fins()
58 cos *= kRadius / 2.0f; in draw_fins()
69 canvas->clipRect(SkRect::MakeLTRB(-kRadius-kPad, -kRadius-kPad, kRadius+kPad, kRadius+kPad)); in draw_snowflake()
75 sin *= kRadius; in draw_snowflake()
[all...]
H A Dtallstretchedbitmaps.cpp22 constexpr int kRadius = 22; in make_bm() local
29 int count = (height / (2 * kRadius + kMargin)); in make_bm()
30 height = count * (2 * kRadius + kMargin); in make_bm()
32 bm->allocN32Pixels(2 * (kRadius + kMargin), height); in make_bm()
43 SkIRect subRect = SkIRect::MakeXYWH(0, i * (kMargin + 2 * kRadius), in make_bm()
44 2 * kRadius + kMargin, 2 * kRadius + kMargin); in make_bm()
47 canvas.translate(kMargin + kRadius, kMargin + kRadius); in make_bm()
54 SkScalar radius = kRadius in make_bm()
[all...]
H A Dcirculararcs.cpp274 static constexpr SkScalar kRadius = 40.f; in DEF_SIMPLE_GM() local
280 matrices.push_back().setRotate(kRadius, kRadius, 45.f); in DEF_SIMPLE_GM()
282 matrices.push_back().setAll(-1, 0, 2*kRadius, in DEF_SIMPLE_GM()
286 0, -1, 2*kRadius, in DEF_SIMPLE_GM()
289 0, -1, 2*kRadius, in DEF_SIMPLE_GM()
291 matrices.push_back().setAll( 0, -1, 2*kRadius, in DEF_SIMPLE_GM()
292 -1, 0, 2*kRadius, in DEF_SIMPLE_GM()
294 matrices.push_back().setAll( 0, -1, 2*kRadius, in DEF_SIMPLE_GM()
301 -1, 0, 2*kRadius, in DEF_SIMPLE_GM()
[all...]
H A Dblurignorexform.cpp76 static const SkScalar kRadius = 20.0f; variable
78 SkRect rect = SkRect::MakeXYWH(coord - kRadius , coord - kRadius,
79 2 * kRadius, 2 * kRadius);
80 SkRRect rrect = SkRRect::MakeRectXY(rect, kRadius/2.0f, kRadius/2.0f);
87 canvas->drawCircle(coord, coord, kRadius, paint);
H A Ddashcircle.cpp147 static constexpr SkScalar kRadius = 20.f; variable
150 static constexpr SkRect kCircle = {-kRadius, -kRadius, kRadius, kRadius};
152 static constexpr SkScalar kThinRadius = kRadius * 1.5;
161 static constexpr SkScalar kCircumference = kRadius * kTau;
H A Dconvexpolyclip.cpp127 constexpr SkScalar kRadius = 45.f; variable
128 const SkPoint center = { kRadius, kRadius };
132 point.scale(kRadius);
143 scaleM.setScale(1.1f, 0.4f, kRadius, kRadius);
H A Dconvexpolyeffect.cpp67 constexpr SkScalar kRadius = 50.f; variable
68 const SkPoint center = { kRadius, kRadius };
72 point.scale(kRadius);
H A Dhairlines.cpp38 kRadius = 40, enumerator
42 SkScalar x = kRadius * SkScalarCos(angle);
43 SkScalar y = kRadius * SkScalarSin(angle);
H A Dgradients.cpp603 const SkScalar kRadius = 3000; variable
605 fShader = SkGradientShader::MakeRadial(center, kRadius, kColors, nullptr, 2,
638 const SkScalar kRadius = 250; variable
642 fShader = SkGradientShader::MakeRadial(center, kRadius, colors, pos,
/third_party/skia/samplecode/
H A DSampleFitCubicToCircle.cpp27 constexpr static int kRadius = 250; variable
128 fCubicX[i] = X[i] * kRadius + kCenterX; in fitCubic()
129 fCubicY[i] = Y[i] * kRadius + kCenterY; in fitCubic()
133 fMaxError = std::sqrt(errX*errX + errY*errY) - kRadius; in fitCubic()
157 canvas->drawArc(SkRect::MakeXYWH(kCenterX - kRadius, kCenterY - kRadius, kRadius * 2, in onDrawContent()
158 kRadius * 2), 0, 360, false, circlePaint); in onDrawContent()
241 double error = std::sqrt(x*x + y*y) * kRadius - kRadius; in onChar()
[all...]
/third_party/skia/tests/
H A DImageFilterTest.cpp603 static const int kRadius = 8; in test_morphology_radius_with_mirror_ctm() local
605 sk_sp<SkImageFilter> filter(SkImageFilters::Dilate(kRadius, kRadius, nullptr)); in test_morphology_radius_with_mirror_ctm()

Completed in 11 milliseconds