/third_party/skia/modules/canvaskit/htmlcanvas/ |
H A D | path2d.js | 3 function arc(skpath, x, y, radius, startAngle, endAngle, ccw) { 6 ellipse(skpath, x, y, radius, radius, 0, startAngle, endAngle, ccw); 43 function _ellipseHelper(skpath, x, y, radiusX, radiusY, startAngle, endAngle) { 44 var sweepDegrees = radiansToDegrees(endAngle - startAngle); 61 startAngle, endAngle, ccw) { 62 if (!allAreFinite([x, y, radiusX, radiusY, rotation, startAngle, endAngle])) { 77 endAngle += delta; 80 if (!ccw && (endAngle - startAngle) >= tao) { 82 endAngle = startAngle + tao; 83 } else if (ccw && (startAngle - endAngle) > [all...] |
H A D | canvas2dcontext.js | 472 this.arc = function(x, y, radius, startAngle, endAngle, ccw) { 473 arc(this._currentPath, x, y, radius, startAngle, endAngle, ccw); 594 startAngle, endAngle, ccw) { 596 startAngle, endAngle, ccw);
|
/third_party/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/ |
H A 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/modules/pathkit/ |
H A D | externs.js | 42 _arc: function(x, y, radius, startAngle, endAngle, ccw) {}, 49 _ellipse: function(x, y, radiusX, radiusY, rotation, startAngle, endAngle, ccw) {}, 90 PathKit.SkPath.prototype.arc = function(x, y, radius, startAngle, endAngle, ccw) {}; 98 PathKit.SkPath.prototype.ellipse = function(x, y, radiusX, radiusY, rotation, startAngle, endAngle, ccw) {};
|
H A D | chaining.js | 52 PathKit.SkPath.prototype.arc = function(x, y, radius, startAngle, endAngle, ccw) { 53 this._arc(x, y, radius, startAngle, endAngle, !!ccw); 97 PathKit.SkPath.prototype.ellipse = function(x, y, radiusX, radiusY, rotation, startAngle, endAngle, ccw) { 98 this._ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, !!ccw);
|
H A D | pathkit_wasm_bindings.cpp | 312 SkScalar startAngle, SkScalar endAngle, bool ccw) { in ApplyAddArc() 315 const auto sweep = SkRadiansToDegrees(endAngle - startAngle) - 360 * ccw; in ApplyAddArc() 321 SkScalar rotation, SkScalar startAngle, SkScalar endAngle, bool ccw) { in ApplyEllipse() 326 const auto sweep = SkRadiansToDegrees(endAngle - startAngle) - (360 * ccw); in ApplyEllipse() 311 ApplyAddArc(SkPath& path, SkScalar x, SkScalar y, SkScalar radius, SkScalar startAngle, SkScalar endAngle, bool ccw) ApplyAddArc() argument 320 ApplyEllipse(SkPath& path, SkScalar x, SkScalar y, SkScalar radiusX, SkScalar radiusY, SkScalar rotation, SkScalar startAngle, SkScalar endAngle, bool ccw) ApplyEllipse() argument
|
/third_party/skia/docs/examples/ |
H A D | issue640176.cpp | 9 float startAngle = -0.5235985, endAngle = -2.439e-4, radius = 120; in REG_FIDDLE() local 17 (endAngle - startAngle) * 180 / 3.14159265359, false); in REG_FIDDLE()
|
/third_party/skia/gm/ |
H A D | addarc.cpp | 288 SkScalar endAngle = startAngles[i] + sweepAngle; in DEF_SIMPLE_GM() local 295 startAngles[i] * 180 / SK_ScalarPI, endAngle * 180 / SK_ScalarPI, in DEF_SIMPLE_GM() 297 path.lineTo(centerX + innerRadius * sk_float_cos(endAngle), in DEF_SIMPLE_GM() 298 centerY + innerRadius * sk_float_sin(endAngle)); in DEF_SIMPLE_GM() 300 endAngle * 180 / SK_ScalarPI, startAngles[i] * 180 / SK_ScalarPI, in DEF_SIMPLE_GM()
|
/third_party/skia/third_party/externals/angle2/samples/particle_system/ |
H A D | ParticleSystem.cpp | 96 float endAngle = mRNG.randomFloatBetween(0, 2.0f * float(M_PI)); variable 98 mParticles[i].endPosition.x() = sinf(endAngle) * endRadius; 99 mParticles[i].endPosition.y() = cosf(endAngle) * endRadius;
|
/third_party/skia/src/shaders/gradients/ |
H A D | SkSweepGradient.cpp | 45 auto [startAngle, endAngle] = angles_from_t_coeff(tBias, tScale); 49 desc.fTileMode, startAngle, endAngle,
|
H A D | SkGradientShader.cpp | 1016 SkScalar endAngle, in MakeSweep() 1021 mode, startAngle, endAngle, flags, localMatrix); in MakeSweep() 1031 SkScalar endAngle, in MakeSweep() 1040 if (!SkScalarIsFinite(startAngle) || !SkScalarIsFinite(endAngle) || startAngle > endAngle) { in MakeSweep() 1047 if (SkScalarNearlyEqual(startAngle, endAngle, kDegenerateThreshold)) { in MakeSweep() 1050 if (mode == SkTileMode::kClamp && endAngle > kDegenerateThreshold) { in MakeSweep() 1057 endAngle, flags, localMatrix); in MakeSweep() 1063 if (startAngle <= 0 && endAngle >= 360) { in MakeSweep() 1075 t1 = endAngle / 36 in MakeSweep() 1010 MakeSweep(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int colorCount, SkTileMode mode, SkScalar startAngle, SkScalar endAngle, uint32_t flags, const SkMatrix* localMatrix) MakeSweep() argument 1024 MakeSweep(SkScalar cx, SkScalar cy, const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], int colorCount, SkTileMode mode, SkScalar startAngle, SkScalar endAngle, uint32_t flags, const SkMatrix* localMatrix) MakeSweep() argument [all...] |
/third_party/skia/include/effects/ |
H A D | SkGradientShader.h | 208 @param endAngle End of the angular range, corresponding to pos == 1. 213 SkScalar startAngle, SkScalar endAngle, 240 @param endAngle End of the angular range, corresponding to pos == 1. 246 SkScalar startAngle, SkScalar endAngle,
|
/third_party/skia/modules/canvaskit/ |
H A D | interface.js | 168 CanvasKit.Path.prototype.arc = function(x, y, radius, startAngle, endAngle, ccw) { 172 var sweep = radiansToDegrees(endAngle - startAngle) - (360 * !!ccw); 1039 CanvasKit.Shader.MakeSweepGradient = function(cx, cy, colors, pos, mode, localMatrix, flags, startAngle, endAngle, colorSpace) { 1045 endAngle = endAngle || 360; 1050 startAngle, endAngle, flags,
|
H A D | canvaskit_bindings.cpp | 1717 SkScalar startAngle, SkScalar endAngle, in EMSCRIPTEN_BINDINGS() 1726 mode, startAngle, endAngle, flags, in EMSCRIPTEN_BINDINGS() 1731 mode, startAngle, endAngle, flags, in EMSCRIPTEN_BINDINGS()
|
/third_party/skia/src/core/ |
H A D | SkPathBuilder.cpp | 364 SkScalar endAngle = SkDegreesToRadians(startAngle + sweepAngle); in arcTo() local 369 // calling SkScalarSinSnapToZero will make sin(endAngle) be 0 which will then draw a dot. in arcTo() 370 singlePt.set(oval.centerX() + radiusX * SkScalarCos(endAngle), in arcTo() 371 oval.centerY() + radiusY * SkScalarSin(endAngle)); in arcTo()
|
H A D | SkPath.cpp | 1131 SkScalar endAngle = SkDegreesToRadians(startAngle + sweepAngle); in arcTo() local 1136 // calling SkScalarSinSnapToZero will make sin(endAngle) be 0 which will then draw a dot. in arcTo() 1137 singlePt.set(oval.centerX() + radiusX * SkScalarCos(endAngle), in arcTo() 1138 oval.centerY() + radiusY * SkScalarSin(endAngle)); in arcTo()
|
/third_party/skia/src/ports/ |
H A D | SkFontHost_FreeType_common.cpp | 671 SkScalar endAngle = SkFixedToScalar(sweep_gradient.end_angle * 180.0f); in colrv1_configure_skpaint() local 690 endAngle = clampAngleToRange(endAngle); in colrv1_configure_skpaint() 694 if (startAngle >= endAngle) in colrv1_configure_skpaint() 695 endAngle += 360.f; in colrv1_configure_skpaint() 705 SkTileMode::kDecal, startAngle, endAngle, 0, &angle_adjust)); in colrv1_configure_skpaint()
|
/third_party/skia/src/gpu/ops/ |
H A D | GrOvalOpFactory.cpp | 1117 SkScalar endAngle = arcParams->fStartAngleRadians + arcParams->fSweepAngleRadians; 1118 stopPoint.fY = SkScalarSin(endAngle); 1119 stopPoint.fX = SkScalarCos(endAngle);
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-ot-color-colr-table.hh | 521 F2DOT14 endAngle; member
|