Skip to content

Instantly share code, notes, and snippets.

@ameuret
Created February 21, 2022 03:40
Show Gist options
  • Save ameuret/9a12b646ce36eb4aba2bd8c7a2d37168 to your computer and use it in GitHub Desktop.
Save ameuret/9a12b646ce36eb4aba2bd8c7a2d37168 to your computer and use it in GitHub Desktop.
class AFewQuads:
list = []
a = Point(231.5, 112.5)
# curveto
a = Point(231.5, 112.5)
b = Point(251.3, 116.0)
c = Point(272.9, 99.5)
d = Point(277.2, 71.0)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(277.2, 71.0)
b = Point(281.2, 44.5)
c = Point(271.5, 27.7)
d = Point(254.9, 25.7)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(254.9, 25.7)
b = Point(231.7, 23.1)
c = Point(212.9, 46.1)
d = Point(209.4, 70.3)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(209.4, 70.3)
b = Point(205.4, 98.0)
c = Point(218.4, 110.2)
d = Point(231.5, 112.5)
list.append(BezierQuad(a, b, c, d))
a = Point(121.2, 102.7)
# curveto
a = Point(121.2, 102.7)
b = Point(147.1, 104.0)
c = Point(156.3, 78.9)
d = Point(157.7, 62.0)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(157.7, 62.0)
b = Point(159.2, 43.7)
c = Point(152.9, 16.6)
d = Point(126.1, 13.6)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(126.1, 13.6)
b = Point(99.4, 10.6)
c = Point(88.4, 36.1)
d = Point(86.8, 53.1)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(86.8, 53.1)
b = Point(84.9, 72.2)
c = Point(90.3, 101.2)
d = Point(121.2, 102.7)
list.append(BezierQuad(a, b, c, d))
a = Point(167.2, 151.3)
# curveto
a = Point(167.2, 151.3)
b = Point(228.7, 156.3)
c = Point(256.0, 140.3)
d = Point(256.0, 140.3)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(256.0, 140.3)
b = Point(256.0, 140.3)
c = Point(272.0, 146.8)
d = Point(271.8, 167.8)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(271.8, 167.8)
b = Point(271.6, 176.3)
c = Point(268.4, 185.0)
d = Point(263.6, 192.5)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(263.6, 192.5)
b = Point(257.0, 202.9)
c = Point(236.5, 212.4)
d = Point(235.9, 219.2)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(235.9, 219.2)
b = Point(235.6, 223.0)
c = Point(241.8, 225.8)
d = Point(246.3, 226.8)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(246.3, 226.8)
b = Point(251.9, 228.1)
c = Point(263.4, 224.1)
d = Point(263.4, 224.1)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(263.4, 224.1)
b = Point(263.4, 224.1)
c = Point(269.2, 230.0)
d = Point(275.2, 229.2)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(275.2, 229.2)
b = Point(278.1, 228.8)
c = Point(281.5, 228.8)
d = Point(283.4, 227.1)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(283.4, 227.1)
b = Point(308.9, 204.9)
c = Point(319.3, 187.4)
d = Point(320.6, 164.8)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(320.6, 164.8)
b = Point(321.9, 141.8)
c = Point(299.4, 112.5)
d = Point(284.2, 102.9)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(284.2, 102.9)
b = Point(286.9, 80.5)
c = Point(306.9, 34.9)
d = Point(274.3, -5.2)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(274.3, -5.2)
b = Point(265.2, -16.3)
c = Point(234.7, -28.5)
d = Point(234.7, -28.5)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(234.7, -28.5)
b = Point(234.7, -28.5)
c = Point(220.2, -17.3)
d = Point(188.8, -18.1)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(188.8, -18.1)
b = Point(157.5, -18.9)
c = Point(136.4, -30.1)
d = Point(125.2, -30.1)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(125.2, -30.1)
b = Point(100.0, -24.3)
c = Point(87.3, -6.5)
d = Point(77.4, 12.2)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(77.4, 12.2)
b = Point(68.0, 29.9)
c = Point(64.1, 79.7)
d = Point(64.1, 79.7)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(64.1, 79.7)
b = Point(55.3, 89.9)
c = Point(13.1, 100.3)
d = Point(11.0, 147.7)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(11.0, 147.7)
b = Point(10.0, 170.8)
c = Point(25.8, 210.0)
d = Point(47.0, 210.2)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(47.0, 210.2)
b = Point(50.3, 210.3)
c = Point(55.2, 205.6)
d = Point(55.2, 205.6)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(55.2, 205.6)
b = Point(55.2, 205.6)
c = Point(76.0, 214.4)
d = Point(81.5, 208.6)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(81.5, 208.6)
b = Point(90.0, 199.8)
c = Point(55.3, 186.6)
d = Point(58.8, 154.4)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(58.8, 154.4)
b = Point(61.7, 126.9)
c = Point(83.0, 124.3)
d = Point(83.0, 124.3)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(83.0, 124.3)
b = Point(83.0, 124.3)
c = Point(108.3, 146.5)
d = Point(167.2, 151.3)
list.append(BezierQuad(a, b, c, d))
a = Point(167.2, 151.3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment