Lines Matching +defs:r +defs:c
3 // Copyright (c) 2013 – 2015 Adobe Systems Incorporated. All rights reserved.
19 // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
250 | eve.on("click", function (a, b, c) {
251 | console.log(a, b, c); // 1, 2, [event object]
441 // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
797 // Copyright (c) 2013 - 2015 Adobe Systems Incorporated. All rights reserved.
1348 o r (number) red,
1357 return {r: -1, g: -1, b: -1, hex: "none", error: 1, toString: rgbtoString};
1360 return {r: -1, g: -1, b: -1, hex: "none", toString: rgbtoString};
1364 return {r: -1, g: -1, b: -1, hex: "none", error: 1, toString: rgbtoString};
1426 rgb = {r: red, g: green, b: blue, toString: rgbtoString};
1431 return {r: -1, g: -1, b: -1, hex: "none", error: 1, toString: rgbtoString};
1464 - r (number) red
1469 Snap.rgb = cacher(function (r, g, b, o) {
1472 return "rgba(" + [round(r), round(g), round(b), +o.toFixed(2)] + ")";
1474 return "#" + (16777216 | b | (g << 8) | (r << 16)).toString(16).slice(1);
1499 "rgba(" + [this.r, this.g, this.b, this.opacity] + ")";
1501 prepareRGB = function (r, g, b) {
1502 if (g == null && is(r, "object") && "r" in r && "g" in r && "b" in r) {
1503 b = r.b;
1504 g = r.g;
1505 r = r.r;
1507 if (g == null && is(r, string)) {
1508 var clr = Snap.getRGB(r);
1509 r = clr.r;
1513 if (r > 1 || g > 1 || b > 1) {
1514 r /= 255;
1519 return [r, g, b];
1521 packageRGB = function (r, g, b, o) {
1522 r = math.round(r * 255);
1526 r: r,
1530 hex: Snap.rgb(r, g, b),
1544 o r (number) red,
1559 clr.r = rgb.r;
1566 clr.r = rgb.r;
1575 if (is(clr, "object") && "r" in clr && "g" in clr && "b" in clr && !("error" in clr)) {
1584 clr.r = clr.g = clr.b = clr.h = clr.s = clr.v = clr.l = -1;
1601 o r (number) red,
1637 o r (number) red,
1672 - r (number) red
1682 Snap.rgb2hsb = function (r, g, b) {
1683 b = prepareRGB(r, g, b);
1684 r = b[0];
1689 V = mmax(r, g, b);
1690 C = V - mmin(r, g, b);
1692 V == r ? (g - b) / C :
1693 V == g ? (b - r) / C + 2 :
1694 (r - g) / C + 4
1705 - r (number) red
1715 Snap.rgb2hsl = function (r, g, b) {
1716 b = prepareRGB(r, g, b);
1717 r = b[0];
1722 M = mmax(r, g, b);
1723 m = mmin(r, g, b);
1726 M == r ? (g - b) / C :
1727 M == g ? (b - r) / C + 2 :
1728 (r - g) / C + 4);
1757 var paramCounts = {a: 7, c: 6, o: 2, h: 1, l: 2, m: 2, r: 4, q: 4, s: 4, t: 2, v: 1, u: 3, z: 0},
1763 Str(pathString).replace(pathCommand, function (a, b, c) {
1766 c.replace(pathValues, function (a, b) {
1777 if (name == "r") {
1805 var paramCounts = {r: 3, s: 4, t: 2, m: 6},
1811 Str(TString).replace(tCommand, function (a, b, c) {
1814 c.replace(pathValues, function (a, b) {
1880 } else if (command == "r") {
2019 set("r", getW);
2130 | var c = paper.circle(10, 10, 10);
2131 | c.node.onclick = function () {
2132 | c.attr("fill", "red");
2352 | var c = paper.circle(10, 10, 10); // is the same as...
2353 | var c = paper.el("circle").attr({
2356 | r: 10
2359 | var c = paper.el("circle", {
2362 | r: 10
2647 // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
3228 | c = paper.circle(200, 200, 100);
3229 | c.attr({
3628 // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
3646 function Matrix(a, b, c, d, e, f) {
3650 this.c = a.c;
3659 this.c = +c;
3666 this.c = 0;
3680 - c (number)
3687 matrixproto.add = function (a, b, c, d, e, f) {
3689 m = [[this.a, this.c, this.e], [this.b, this.d, this.f], [0, 0, 1]],
3690 matrix = [[a, c, e], [b, d, f], [0, 0, 1]],
3694 matrix = [[a.a, a.c, a.e], [a.b, a.d, a.f], [0, 0, 1]];
3708 this.c = out[0][1];
3723 x = me.a * me.d - me.b * me.c;
3724 return new Matrix(me.d / x, -me.b / x, -me.c / x, me.a / x, (me.c * me.f - me.d * me.e) / x, (me.b * me.e - me.a * me.f) / x);
3734 return new Matrix(this.a, this.b, this.c, this.d, this.e, this.f);
3793 return x * this.a + y * this.c + this.e;
3832 return this.a * this.d - this.b * this.c;
3855 var row = [[this.a, this.c], [this.b, this.d]];
3902 (s.rotate ? "r" + [+s.rotate.toFixed(4), 0, 0] : E);
3925 - c (number)
3933 Snap.matrix = function (a, b, c, d, e, f) {
3934 return new Matrix(a, b, c, d, e, f);
3937 // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
4135 eve.on("snap.util.attr.r", function (value) {
4280 eve.on("snap.util.getattr.r", function () {
4349 // Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
4364 rgBadSpace = /[\t\r\n\f]/g,
4497 // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
4586 // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
4618 | var c = paper.rect(10, 10, 50, 50);
4620 | var c = paper.rect(40, 40, 50, 50, 10);
4651 - r (number) radius
4655 | var c = paper.circle(50, 50, 40);
4657 proto.circle = function (cx, cy, r) {
4665 r: r
4706 | var c = paper.image("apple.png", 10, 10, 80, 80);
4749 | var c = paper.ellipse(50, 50, 40, 20);
4792 | var c = paper.path("M10 10L90 90");
5127 r = this.node.r || 0;
5128 return Snap._.box(cx - r, cy - r, r * 2, r * 2);
5187 function gradientRadial(defs, cx, cy, r, fx, fy) {
5196 r: r
5219 * Lowercase `l` or `r` letters indicate coordinates
5223 * `r` and optional `fx`, `fy` specifying a focal point away
5237 | var g = paper.gradient("r(0.5, 0.5, 0.5)#000-#fff");
5250 proto.gradientRadial = function (cx, cy, r, fx, fy) {
5251 return gradientRadial(this.defs, cx, cy, r, fx, fy);
5307 // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
5757 function rectPath(x, y, w, h, r) {
5758 if (r) {
5760 ["M", +x + (+r), y],
5761 ["l", w - r * 2, 0],
5762 ["a", r, r, 0, 0, 1, r, r],
5763 ["l", 0, h - r * 2],
5764 ["a", r, r, 0, 0, 1, -r, r],
5765 ["l", r * 2 - w, 0],
5766 ["a", r, r, 0, 0, 1, -r, -r],
5767 ["l", 0, r * 2 - h],
5768 ["a", r, r, 0, 0, 1, r, -r],
5810 return ellipsePath(attr.cx, attr.cy, attr.r);
5862 var r = res[i] = [],
5865 r[0] = lowerCase.call(pa[0]);
5866 switch (r[0]) {
5868 r[1] = pa[1];
5869 r[2] = pa[2];
5870 r[3] = pa[3];
5871 r[4] = pa[4];
5872 r[5] = pa[5];
5873 r[6] = +(pa[6] - x).toFixed(3);
5874 r[7] = +(pa[7] - y).toFixed(3);
5877 r[1] = +(pa[1] - y).toFixed(3);
5884 r[j] = +(pa[j] - ((j % 2) ? x : y)).toFixed(3);
5888 r = res[i] = [];
5948 for (var r, pa, i = start, ii = pathArray.length; i < ii; i++) {
5949 res.push(r = []);
5953 r[0] = pa0.toUpperCase();
5954 switch (r[0]) {
5956 r[1] = pa[1];
5957 r[2] = pa[2];
5958 r[3] = pa[3];
5959 r[4] = pa[4];
5960 r[5] = pa[5];
5961 r[6] = +pa[6] + x;
5962 r[7] = +pa[7] + y;
5965 r[1] = +pa[1] + y;
5968 r[1] = +pa[1] + x;
5988 r = ["U"].concat(res[res.length - 1].slice(-2));
5995 r[j] = +pa[j] + ((j % 2) ? x : y);
6002 r = ["R"].concat(pa.slice(-2));
6011 r = ["U"].concat(res[res.length - 1].slice(-2));
6014 r[k] = pa[k];
6019 switch (r[0]) {
6025 x = r[1];
6028 y = r[1];
6031 mx = r[r.length - 2];
6032 my = r[r.length - 1];
6034 x = r[r.length - 2];
6035 y = r[r.length - 1];
6162 a, b, c, t, t1, t2, b2ac, sqrtb2ac;
6167 c = 3 * x1 - 3 * x0;
6171 c = 3 * y1 - 3 * y0;
6177 t = -c / b;
6183 b2ac = b * b - 4 * c * a;
6599 var r = 100,
6600 b = box(x - r / 2, y - r / 2, r, r),
6614 while (r <= 1e6 && !found) {
6624 r *= 2;
6625 b = box(x - r / 2, y - r / 2, r, r)
6628 if (r == 1e6) {
6762 // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
6861 | set.animate({r: 10}, 500, mina.easein);
6864 | set.animate([{r: 10}, 500, mina.easein], [{r: 20}, 1500, mina.easein]);
7078 // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
7101 case "r": if (item.length == 4) {
7128 (tt1[0].toLowerCase() == "r" && (tt1[2] != tt2[2] || tt1[3] != tt2[3])) ||
7133 from = [["m", t1.a, t1.b, t1.c, t1.d, t1.e, t1.f]];
7134 to = [["m", t2.a, t2.b, t2.c, t2.d, t2.e, t2.f]];
7212 from: [A.r, A.g, A.b, A.opacity],
7213 to: [B.r, B.g, B.b, B.opacity],
7272 // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
7749 // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
7780 | c = paper.circle(10, 10, 10).attr({
7839 | c = paper.circle(10, 10, 10).attr({
7878 | c = paper.circle(10, 10, 10).attr({
7931 return Snap.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>', {
7934 c: 0.0722 - 0.0722 * (1 - amount),
7958 return Snap.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>', {
7961 c: 0.189 - 0.189 * (1 - amount),
8076 // Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
8120 way = way ? way[1].toLowerCase() : "c";
8138 case "r":