Skip to content

Commit

Permalink
Merge pull request #302 from kimikage/julialogo
Browse files Browse the repository at this point in the history
fix unclosed paths in julialogo
  • Loading branch information
cormullion authored Mar 23, 2024
2 parents 7141599 + 7560497 commit a4bcfaa
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/juliagraphics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function julialogo(;
PathCurve(Point(118.8203125, 163.87890625), Point(120.44140625, 164.19921875), Point(122.17578125, 164.19921875)),
PathCurve(Point(124.1328125, 164.19921875), Point(126.359375, 163.1015625), Point(129.0703125, 161.203125)),
PathCurve(Point(133.36328125, 158.1953125), Point(135.96484375, 156.12890625), Point(135.96484375, 153.68359375)),
PathCurve(Point(135.96484375, 153.09765625), Point(135.96484375, 92.4140625), Point(135.96484375, 92.4140625)),
PathLine(Point(135.96484375, 92.4140625)),
PathLine(Point(161.73828125, 92.4140625)),
PathLine(Point(161.73828125, 177.3125)),
PathLine(Point(135.96484375, 177.3125)),
Expand All @@ -128,14 +128,15 @@ function julialogo(;
PathLine(Point(197.8828125, 51.15625)),
PathClose()]

# "u"
# "i"
_i = [
PathMove(Point(208.6015625, 97.05078125)),
PathLine(Point(234.375, 89.9296875)),
PathLine(Point(234.375, 177.3125)),
PathLine(Point(208.6015625, 177.3125)),
PathClose()]

# "a"
_a = [
PathMove(Point(288.2265625, 133.44921875)),
PathCurve(Point(285.73828125, 134.5078125), Point(283.23046875, 135.73046875), Point(280.70703125, 137.125)),
Expand Down Expand Up @@ -194,31 +195,31 @@ function julialogo(;
PathCurve(Point(213.10546875, 85.58984375), Point(205.2734375, 77.7578125), Point(205.2734375, 68.08984375)),
PathCurve(Point(205.2734375, 58.42578125), Point(213.10546875, 50.58984375), Point(222.7734375, 50.58984375)),
PathCurve(Point(232.4375, 50.58984375), Point(240.2734375, 58.42578125), Point(240.2734375, 68.08984375)),
]
PathClose()]

_blue_dot = [
PathMove(Point(77.953125, 68.08984375)),
PathCurve(Point(77.953125, 77.7578125), Point(70.1171875, 85.58984375), Point(60.453125, 85.58984375)),
PathCurve(Point(50.7890625, 85.58984375), Point(42.953125, 77.7578125), Point(42.953125, 68.08984375)),
PathCurve(Point(42.953125, 58.42578125), Point(50.7890625, 50.58984375), Point(60.453125, 50.58984375)),
PathCurve(Point(70.1171875, 50.58984375), Point(77.953125, 58.42578125), Point(77.953125, 68.08984375)),
]
PathClose()]

_purple_dot = [
PathMove(Point(282.3203125, 68.08984375)),
PathCurve(Point(282.3203125, 77.7578125), Point(274.484375, 85.58984375), Point(264.8203125, 85.58984375)),
PathCurve(Point(255.15625, 85.58984375), Point(247.3203125, 77.7578125), Point(247.3203125, 68.08984375)),
PathCurve(Point(247.3203125, 58.42578125), Point(255.15625, 50.58984375), Point(264.8203125, 50.58984375)),
PathCurve(Point(274.484375, 50.58984375), Point(282.3203125, 58.42578125), Point(282.3203125, 68.08984375)),
]
PathClose()]

_green_dot = [
PathMove(Point(261.30078125, 31.671875)),
PathCurve(Point(261.30078125, 41.3359375), Point(253.46484375, 49.171875), Point(243.80078125, 49.171875)),
PathCurve(Point(234.1328125, 49.171875), Point(226.30078125, 41.3359375), Point(226.30078125, 31.671875)),
PathCurve(Point(226.30078125, 22.0078125), Point(234.1328125, 14.171875), Point(243.80078125, 14.171875)),
PathCurve(Point(253.46484375, 14.171875), Point(261.30078125, 22.0078125), Point(261.30078125, 31.671875))
]
PathCurve(Point(253.46484375, 14.171875), Point(261.30078125, 22.0078125), Point(261.30078125, 31.671875)),
PathClose()]

if action == :clip
map.(drawpath, (_j, _u, _l, _i, _a))
Expand Down

0 comments on commit a4bcfaa

Please sign in to comment.