Conversation
The black fimbriation is drawn wider than the yellow pall, where the grid in the State Flag and Armorial Bearings Public Declaration (19 March 1980) makes the two equal at 1/18 of the height each. Measured at 640x480, the horizontal arm reads black 29 / yellow 24 / black 29 against the grid's 26 / 26 / 26. Redrawn from the grid: diagonals at slope 5/9, each band 2/3 of a grid unit perpendicular, so the vertical offset along a diagonal is 2*sqrt(106)/27. Now four filled polygons with the grid baked into the coordinates instead of two strokes under a non-uniform scale. The emblem is untouched and needed no reseating. Refs lipis#1465
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the pall proportions of the Vanuatu flag, which do not match the grid laid down in the State
Flag and Armorial Bearings Public Declaration of 19 March 1980. Reported first as #1465; this is the
patch for it.
The grid
The Declaration builds the flag on an 18 × 12 grid. Reduced to ratios:
The three bands are equal.
Flag_of_Vanuatu_(official).svgon Commons is built on that grid and cites the Declaration as its source; in its coordinates the
yellow arm spans
y = 3740…4180of7920(440 units) inside a black band spanning3300…4620(1320 units) — 440 / 440 / 440.
Current vs the grid
Two constructions disagree, and why this one
Commons also carries
Flag_of_Vanuatu.svg(950 × 570), which uses black 36 / yellow 30 / black 36 — that is
0.06316 / 0.05263, exactlywhat this repo draws today. So the current artwork does match a published construction; it is just
not the one that cites the legal instrument, and the two are mutually inconsistent. That is presumably
how the discrepancy arose. I have taken the file citing the Declaration as authoritative, on the
grounds that a flag's own enabling law outranks a third-party construction sheet — but that is the
judgement call in this PR, and it is yours to overrule.
How it is drawn
Derived from the grid rather than nudged toward it. Diagonals at slope
5/9; each band is2/3of agrid unit measured perpendicular, so the vertical offset along a diagonal is
2·√106 / 27. Everyvertex follows from those three constants, and they agree with the reference file's own numbers to
6.4e-5grid units — the reference being the rounded one, since it stores 1 decimal in a 7920-unitspace.
The pall is now four filled polygons with the grid baked into the coordinates, replacing the two
strokes inside
scale(.71111 1.01053)/scale(.56889 1.0779). That is not cosmetic: a stroke undera non-uniform scale should be an elliptical pen, and renderers disagree about it. Skia-based ones
(so Flutter's
flutter_svg, viavector_graphics) resolve the transform into the path and keepstroke-widtha scalar, which makes the arm's yellow 62% too wide and eats the blackfimbriation — silently, with no parse error or warning. Filled polygons have no such ambiguity, so
this also makes the file render identically everywhere. Same reasoning as the
es-ctstripes, whichhave the same construction.
The boar's tusk emblem is untouched, and needed no reseating — the redrawn inner black triangle
reaches further right, so clearance at the emblem's right edge grows from 2.11 to 7.82 units (4x3)
and 1.66 to 8.20 (1x1).
Verification
Both files rendered at their natural size, the reference stretched to the same box with
preserveAspectRatio="none"so only the design differs, then a column scan counting colour runs inpixels. Every run now matches the Declaration grid exactly, read identically off
rsvg-convert2.58.4 and offflutter_svg:26is480/18;27/28is512/18landing either side of28.44. Runs count pure-colour pixels,so each boundary loses ~1.5 px to antialiasing — which is why the sum is a little under the geometric
value rather than exact.
Both files also get slightly smaller and lose the now-unused
clipPath.