This page, part of the Graphics Lab Wikiproject, is an archive of requests for 2018. Please do not edit the contents of this page. You can submit new requests here. |
((resolved))
#0066FF
. There are two things to do: define the pattern, and use it. The pattern is defined near the top: <pattern id="stripes_rb" patternUnits="userSpaceOnUse" width="8" height="8" patternTransform="rotate(-45)">
<rect x="0" y="0" width="8" height="8" fill="#D40000" stroke="none" />
<rect x="0" y="2" width="8" height="4" fill="#0066FF" stroke="none" />
</pattern>
<path />
element that draws Hungary (it's the one with the id="hu"
attribute), and altering its fill="#0066FF"
attribute to fill="url(#stripes_rb)"
. That's all - it's really that simple. --Redrose64 🌹 (talk) 21:06, 25 April 2018 (UTC)
<defs>...</defs>
structure - towards the end is probably best. So the present code that looks like this: inkscape:collect="always" />
</defs>
inkscape:collect="always" />
<pattern id="stripes_rlg" patternUnits="userSpaceOnUse" width="4" height="4" patternTransform="rotate(-45)">
<rect x="0" y="0" width="4" height="4" fill="#ff2a2a" stroke="none" />
<rect x="0" y="1" width="4" height="2" fill="#00c864" stroke="none" />
</pattern>
</defs>
fill=
attributes define the colours of the stripes, and . The only other change is to the code that draws the shape for Costa Rica. Fortunately, this map has been written in such a way that each country shape has an id=
attribute which identifies the country, using the two-letter ISO 3166 country code (lowercased). So if you know the country code, you can search for that as the value of an id=
attribute. Costa Rica's code is CR, so we're looking for an element having id="cr"
. Here it is: <path
inkscape:connector-curvature="0"
class="landxx cr"
d="m 208.73811,505.38895 ..."
id="cr"
style="fill:#00c864;fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.2;stroke-miterlimit:3.9922328;stroke-dasharray:none;stroke-opacity:1" />
d=
attribute, this is the path data. This <path />
element uses a style=
attribute to set colours etc. In that there is the declaration fill:#00c864
we need to alter this to fill:url(#stripes_rlg)
which produces: <path
inkscape:connector-curvature="0"
class="landxx cr"
d="m 208.73811,505.38895 ..."
id="cr"
style="fill:url(#stripes_rlg);fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.2;stroke-miterlimit:3.9922328;stroke-dasharray:none;stroke-opacity:1" />
((resolved))
((resolved))
Done VulpesVulpes42 (talk) 14:50, 25 May 2018 (UTC)
((resolved))