/third_party/flutter/skia/modules/canvaskit/htmlcanvas/ |
D | path2d.js | 3 function arc(skpath, x, y, radius, startAngle, endAngle, ccw) { argument 6 ellipse(skpath, x, y, radius, radius, 0, startAngle, endAngle, ccw); 43 function _ellipseHelper(skpath, x, y, radiusX, radiusY, startAngle, endAngle) { argument 44 var sweepDegrees = radiansToDegrees(endAngle - startAngle); 45 var startDegrees = radiansToDegrees(startAngle); 61 startAngle, endAngle, ccw) { argument 62 if (!allAreFinite([x, y, radiusX, radiusY, rotation, startAngle, endAngle])) { 71 var newStartAngle = startAngle % tao; 75 var delta = newStartAngle - startAngle; 76 startAngle = newStartAngle; [all …]
|
/third_party/skia/modules/canvaskit/htmlcanvas/ |
D | path2d.js | 3 function arc(skpath, x, y, radius, startAngle, endAngle, ccw) { argument 6 ellipse(skpath, x, y, radius, radius, 0, startAngle, endAngle, ccw); 43 function _ellipseHelper(skpath, x, y, radiusX, radiusY, startAngle, endAngle) { argument 44 var sweepDegrees = radiansToDegrees(endAngle - startAngle); 45 var startDegrees = radiansToDegrees(startAngle); 61 startAngle, endAngle, ccw) { argument 62 if (!allAreFinite([x, y, radiusX, radiusY, rotation, startAngle, endAngle])) { 71 var newStartAngle = startAngle % tao; 75 var delta = newStartAngle - startAngle; 76 startAngle = newStartAngle; [all …]
|
/third_party/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/ |
D | SweepGradient.java | 14 public SweepGradient(float x, float y, float startAngle, float endAngle, in SweepGradient() argument 18 (c, p, t, m) -> nMakeSweep(x, y, startAngle, endAngle, c, p, t, m)); in SweepGradient() 21 public SweepGradient(float x, float y, float startAngle, float endAngle, in SweepGradient() argument 23 this(x, y, startAngle, endAngle, colors, pos, tm, null); in SweepGradient() 31 public SweepGradient(float x, float y, float startAngle, float endAngle, in SweepGradient() argument 35 (c, p, t, m) -> nMakeSweep(x, y, startAngle, endAngle, c, p, t, m)); in SweepGradient() 38 public SweepGradient(float x, float y, float startAngle, float endAngle, in SweepGradient() argument 40 this(x, y, startAngle, endAngle, colors, pos, tm, null); in SweepGradient()
|
/third_party/skia/docs/examples/ |
D | issue640176.cpp | 9 float startAngle = -0.5235985, endAngle = -2.439e-4, radius = 120; in draw() local 14 path.lineTo(radius * cos(startAngle), radius * sin(startAngle)); in draw() 16 path.arcTo(oval, startAngle * 180 / 3.14159265359, in draw() 17 (endAngle - startAngle) * 180 / 3.14159265359, false); in draw()
|
D | SkPath_arcto_conic_parametric.cpp | 25 float startAngle = 0; in draw() local 29 arc.arcTo(oval, startAngle, sweepAngle, false); in draw() 41 float finalAngle = startAngle + sweepAngle; in draw() 42 float middleAngle = startAngle + 0.5f * sweepAngle; in draw() 44 SkPoint p0 = {r * SkScalarCos(SkDegreesToRadians(startAngle)), in draw() 45 r * SkScalarSin(SkDegreesToRadians(startAngle))}; in draw()
|
D | SkPath_arcto_conic_parametric2.cpp | 42 float startAngle = 15; in draw() local 46 arc.arcTo(oval, startAngle, sweepAngle, false); in draw() 59 float finalAngle = startAngle + sweepAngle; in draw() 60 float middleAngle = startAngle + 0.5f * sweepAngle; in draw() 62 SkPoint p0 = {r * SkScalarCos(SkDegreesToRadians(startAngle)), in draw() 63 r * SkScalarSin(SkDegreesToRadians(startAngle))}; in draw()
|
D | SkPath_arcTo_example.cpp | 15 float startAngle = 0; in draw() local 19 arc.arcTo(oval, startAngle, sweepAngle, false); in draw()
|
/third_party/flutter/skia/gm/ |
D | addarc.cpp | 51 SkScalar startAngle = rand.nextUScalar1() * 360; in onDraw() local 54 startAngle += fRotate * 360 * speed * sign; in onDraw() 57 path.addArc(r, startAngle, sweepAngle); in onDraw() 257 SkScalar startAngle = startAngles[i % SK_ARRAY_COUNT(startAngles)] * sign; variable 262 html_canvas_arc(&path, 18, 15, 10, startAngle, startAngle + (sweepAngles[j] * sign),
|
/third_party/skia/gm/ |
D | addarc.cpp | 51 SkScalar startAngle = rand.nextUScalar1() * 360; in onDraw() local 54 startAngle += fRotate * 360 * speed * sign; in onDraw() 57 path.addArc(r, startAngle, sweepAngle); in onDraw() 255 SkScalar startAngle = startAngles[i % SK_ARRAY_COUNT(startAngles)] * sign; variable 260 html_canvas_arc(&path, 18, 15, 10, startAngle, startAngle + (sweepAngles[j] * sign),
|
/third_party/flutter/skia/modules/pathkit/ |
D | externs.js | 42 _arc: function(x, y, radius, startAngle, endAngle, ccw) {}, argument 49 _ellipse: function(x, y, radiusX, radiusY, rotation, startAngle, endAngle, ccw) {}, argument 90 PathKit.SkPath.prototype.arc = function(x, y, radius, startAngle, endAngle, ccw) {}; argument 98 PathKit.SkPath.prototype.ellipse = function(x, y, radiusX, radiusY, rotation, startAngle, endAngle,… argument
|
D | chaining.js | 52 PathKit.SkPath.prototype.arc = function(x, y, radius, startAngle, endAngle, ccw) { argument 53 this._arc(x, y, radius, startAngle, endAngle, !!ccw); 97 …PathKit.SkPath.prototype.ellipse = function(x, y, radiusX, radiusY, rotation, startAngle, endAngle… argument 98 this._ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, !!ccw);
|
D | pathkit_wasm_bindings.cpp | 325 SkScalar startAngle, SkScalar endAngle, bool ccw) { in ApplyAddArc() argument 328 const auto sweep = SkRadiansToDegrees(endAngle - startAngle) - 360 * ccw; in ApplyAddArc() 329 temp.addArc(bounds, SkRadiansToDegrees(startAngle), sweep); in ApplyAddArc() 334 SkScalar rotation, SkScalar startAngle, SkScalar endAngle, bool ccw) { in ApplyEllipse() argument 339 const auto sweep = SkRadiansToDegrees(endAngle - startAngle) - (360 * ccw); in ApplyEllipse() 340 temp.addArc(bounds, SkRadiansToDegrees(startAngle), sweep); in ApplyEllipse()
|
/third_party/skia/modules/pathkit/ |
D | externs.js | 42 _arc: function(x, y, radius, startAngle, endAngle, ccw) {}, argument 49 _ellipse: function(x, y, radiusX, radiusY, rotation, startAngle, endAngle, ccw) {}, argument 90 PathKit.SkPath.prototype.arc = function(x, y, radius, startAngle, endAngle, ccw) {}; argument 98 PathKit.SkPath.prototype.ellipse = function(x, y, radiusX, radiusY, rotation, startAngle, endAngle,… argument
|
D | chaining.js | 52 PathKit.SkPath.prototype.arc = function(x, y, radius, startAngle, endAngle, ccw) { argument 53 this._arc(x, y, radius, startAngle, endAngle, !!ccw); 97 …PathKit.SkPath.prototype.ellipse = function(x, y, radiusX, radiusY, rotation, startAngle, endAngle… argument 98 this._ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, !!ccw);
|
D | pathkit_wasm_bindings.cpp | 312 SkScalar startAngle, SkScalar endAngle, bool ccw) { in ApplyAddArc() argument 315 const auto sweep = SkRadiansToDegrees(endAngle - startAngle) - 360 * ccw; in ApplyAddArc() 316 temp.addArc(bounds, SkRadiansToDegrees(startAngle), sweep); in ApplyAddArc() 321 SkScalar rotation, SkScalar startAngle, SkScalar endAngle, bool ccw) { in ApplyEllipse() argument 326 const auto sweep = SkRadiansToDegrees(endAngle - startAngle) - (360 * ccw); in ApplyEllipse() 327 temp.addArc(bounds, SkRadiansToDegrees(startAngle), sweep); in ApplyEllipse()
|
/third_party/flutter/skia/src/shaders/gradients/ |
D | SkSweepGradient.cpp | 43 SkScalar startAngle = 0, in CreateProc() local 48 std::tie(startAngle, endAngle) = angles_from_t_coeff(tBias, tScale); in CreateProc() 53 desc.fTileMode, startAngle, endAngle, in CreateProc()
|
/third_party/skia/src/core/ |
D | SkPathBuilder.cpp | 247 static bool arc_is_lone_point(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, in arc_is_lone_point() argument 249 if (0 == sweepAngle && (0 == startAngle || SkIntToScalar(360) == startAngle)) { in arc_is_lone_point() 270 static void angles_to_unit_vectors(SkScalar startAngle, SkScalar sweepAngle, in angles_to_unit_vectors() argument 272 SkScalar startRad = SkDegreesToRadians(startAngle), in angles_to_unit_vectors() 273 stopRad = SkDegreesToRadians(startAngle + sweepAngle); in angles_to_unit_vectors() 328 SkPathBuilder& SkPathBuilder::arcTo(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, in arcTo() argument 339 if (arc_is_lone_point(oval, startAngle, sweepAngle, &lonePt)) { in arcTo() 345 angles_to_unit_vectors(startAngle, sweepAngle, &startV, &stopV, &dir); in arcTo() 364 SkScalar endAngle = SkDegreesToRadians(startAngle + sweepAngle); in arcTo() 391 SkPathBuilder& SkPathBuilder::addArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle) { in addArc() argument [all …]
|
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/ |
D | path_to_svg.dart | 40 if ((ellipse.endAngle - ellipse.startAngle) % (2 * math.pi) == 0.0) { 70 ellipse.startAngle, 164 double startAngle, 170 final double x = math.cos(startAngle) * radiusX; 171 final double y = math.sin(startAngle) * radiusY; 182 final double delta = endAngle - startAngle;
|
/third_party/skia/third_party/externals/angle2/samples/particle_system/ |
D | ParticleSystem.cpp | 102 float startAngle = mRNG.randomFloatBetween(0, 2.0f * float(M_PI)); in initialize() local 104 mParticles[i].startPosition.x() = sinf(startAngle) * startRadius; in initialize() 105 mParticles[i].startPosition.y() = cosf(startAngle) * startRadius; in initialize()
|
/third_party/flutter/skia/third_party/externals/angle2/samples/particle_system/ |
D | ParticleSystem.cpp | 101 float startAngle = mRNG.randomFloatBetween(0, 2.0f * float(M_PI)); in initialize() local 103 mParticles[i].startPosition.x() = sinf(startAngle) * startRadius; in initialize() 104 mParticles[i].startPosition.y() = cosf(startAngle) * startRadius; in initialize()
|
/third_party/flutter/flutter/packages/flutter/test/painting/ |
D | gradient_test.dart | 488 startAngle: 0.0, 497 startAngle: math.pi / 2, 508 startAngle: math.pi / 4, 524 startAngle: 0.0, 537 startAngle: math.pi / 2, 552 startAngle: math.pi / 4, 641 startAngle: 0.0, 653 startAngle: 0.0,
|
/third_party/skia/modules/canvaskit/ |
D | interface.js | 73 CanvasKit.Path.prototype.addArc = function(oval, startAngle, sweepAngle) { argument 77 this._addArc(oPtr, startAngle, sweepAngle); 168 CanvasKit.Path.prototype.arc = function(x, y, radius, startAngle, endAngle, ccw) { argument 172 var sweep = radiansToDegrees(endAngle - startAngle) - (360 * !!ccw); 174 temp.addArc(bounds, radiansToDegrees(startAngle), sweep); 184 CanvasKit.Path.prototype.arcToOval = function(oval, startAngle, sweepAngle, forceMoveTo) { argument 186 this._arcToOval(oPtr, startAngle, sweepAngle, forceMoveTo); 477 CanvasKit.Canvas.prototype.drawArc = function(oval, startAngle, sweepAngle, useCenter, paint) { argument 480 this._drawArc(oPtr, startAngle, sweepAngle, useCenter, paint); 1039 …weepGradient = function(cx, cy, colors, pos, mode, localMatrix, flags, startAngle, endAngle, color… argument [all …]
|
/third_party/flutter/engine/flutter/lib/ui/painting/ |
D | path.cc | 134 float startAngle, in arcTo() argument 138 startAngle * 180.0 / M_PI, sweepAngle * 180.0 / M_PI, in arcTo() 187 float startAngle, in addArc() argument 190 startAngle * 180.0 / M_PI, sweepAngle * 180.0 / M_PI); in addArc()
|
D | path.h | 57 float startAngle, 80 float startAngle,
|
/third_party/skia/src/shaders/gradients/ |
D | SkSweepGradient.cpp | 45 auto [startAngle, endAngle] = angles_from_t_coeff(tBias, tScale); in CreateProc() 49 desc.fTileMode, startAngle, endAngle, in CreateProc()
|