Skip to content

Instantly share code, notes, and snippets.

@ameuret
Created February 21, 2022 07:17
Show Gist options
  • Save ameuret/d061c4b582ac7d4909bd580240886397 to your computer and use it in GitHub Desktop.
Save ameuret/d061c4b582ac7d4909bd580240886397 to your computer and use it in GitHub Desktop.
from bezier import *
class AFewQuads:
list = []
a = Point(231.5, 132.3)
# curveto
a = Point(231.5, 132.3)
b = Point(251.3, 135.5)
c = Point(272.9, 120.3)
d = Point(277.2, 94.0)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(277.2, 94.0)
b = Point(281.2, 69.6)
c = Point(271.5, 54.0)
d = Point(254.9, 52.2)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(254.9, 52.2)
b = Point(231.7, 49.7)
c = Point(212.9, 71.0)
d = Point(209.4, 93.4)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(209.4, 93.4)
b = Point(205.4, 118.9)
c = Point(218.4, 130.2)
d = Point(231.5, 132.3)
list.append(BezierQuad(a, b, c, d))
a = Point(121.2, 123.3)
# curveto
a = Point(121.2, 123.3)
b = Point(147.1, 124.5)
c = Point(156.3, 101.3)
d = Point(157.7, 85.7)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(157.7, 85.7)
b = Point(159.2, 68.8)
c = Point(152.9, 43.8)
d = Point(126.1, 41.0)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(126.1, 41.0)
b = Point(99.4, 38.3)
c = Point(88.4, 61.7)
d = Point(86.8, 77.5)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(86.8, 77.5)
b = Point(84.9, 95.1)
c = Point(90.3, 121.9)
d = Point(121.2, 123.3)
list.append(BezierQuad(a, b, c, d))
a = Point(167.2, 168.1)
# curveto
a = Point(167.2, 168.1)
b = Point(228.7, 172.8)
c = Point(256.0, 158.0)
d = Point(256.0, 158.0)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(256.0, 158.0)
b = Point(256.0, 158.0)
c = Point(272.0, 164.0)
d = Point(271.8, 183.4)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(271.8, 183.4)
b = Point(271.6, 191.2)
c = Point(268.4, 199.2)
d = Point(263.6, 206.2)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(263.6, 206.2)
b = Point(257.0, 215.7)
c = Point(236.5, 224.6)
d = Point(235.9, 230.8)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(235.9, 230.8)
b = Point(235.6, 234.3)
c = Point(241.8, 236.9)
d = Point(246.3, 237.8)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(246.3, 237.8)
b = Point(251.9, 239.0)
c = Point(263.4, 235.3)
d = Point(263.4, 235.3)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(263.4, 235.3)
b = Point(263.4, 235.3)
c = Point(269.2, 240.8)
d = Point(275.2, 240.0)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(275.2, 240.0)
b = Point(278.1, 239.6)
c = Point(281.5, 239.7)
d = Point(283.4, 238.1)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(283.4, 238.1)
b = Point(308.9, 217.6)
c = Point(319.3, 201.5)
d = Point(320.6, 180.6)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(320.6, 180.6)
b = Point(321.9, 159.4)
c = Point(299.4, 132.3)
d = Point(284.2, 123.5)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(284.2, 123.5)
b = Point(286.9, 102.7)
c = Point(306.9, 60.7)
d = Point(274.3, 23.7)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(274.3, 23.7)
b = Point(265.2, 13.4)
c = Point(234.7, 2.2)
d = Point(234.7, 2.2)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(234.7, 2.2)
b = Point(234.7, 2.2)
c = Point(220.2, 12.5)
d = Point(188.8, 11.8)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(188.8, 11.8)
b = Point(157.5, 11.1)
c = Point(136.4, 0.7)
d = Point(125.2, 0.6)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(125.2, 0.6)
b = Point(100.0, 6.0)
c = Point(87.3, 22.4)
d = Point(77.4, 39.7)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(77.4, 39.7)
b = Point(68.0, 56.1)
c = Point(64.1, 102.0)
d = Point(64.1, 102.0)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(64.1, 102.0)
b = Point(55.3, 111.4)
c = Point(13.1, 121.1)
d = Point(11.0, 164.8)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(11.0, 164.8)
b = Point(10.0, 186.1)
c = Point(25.8, 222.3)
d = Point(47.0, 222.5)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(47.0, 222.5)
b = Point(50.3, 222.5)
c = Point(55.2, 218.3)
d = Point(55.2, 218.3)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(55.2, 218.3)
b = Point(55.2, 218.3)
c = Point(76.0, 226.4)
d = Point(81.5, 221.0)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(81.5, 221.0)
b = Point(90.0, 212.9)
c = Point(55.3, 200.7)
d = Point(58.8, 170.9)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(58.8, 170.9)
b = Point(61.7, 145.6)
c = Point(83.0, 143.2)
d = Point(83.0, 143.2)
list.append(BezierQuad(a, b, c, d))
# curveto
a = Point(83.0, 143.2)
b = Point(83.0, 143.2)
c = Point(108.3, 163.7)
d = Point(167.2, 168.1)
list.append(BezierQuad(a, b, c, d))
a = Point(167.2, 168.1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment