Category talk:Wp ribbon images that should use vector graphics

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

I don't think that SVG supports scripts if they did then the following format might work:

<script>
var rects = "";
for (i = 0; i < 30; i++) {
    var upOne = i + 1;
    var rects += document.write("\
                    <rect x='0' y='" + i + "' width='24' height='1' style='fill:rgb(255,0,0);'/>\
                    <rect x='24' y='" + i + "' width='24' height='1' style='fill:rgb(0,255,0);'/>\
                    <rect x='48' y='" + i + "' width='24' height='1' style='fill:rgb(0,0,255);'/>\
                    <rect x='0' y='" + upOne + "' width='24' height='1' style='fill:rgb(255,0,0);'/>\
                    <rect x='24' y='" + upOne + "' width='24' height='1' style='fill:rgb(0,255,0);'/>\
                    <rect x='48' y='" + upOne + "' width='24' height='1' style='fill:rgb(0,0,255);'/>\
    ");
}
document.write("<svg>" + rects + "</svg>");
</script>

 —User000name 00:39, 28 August 2016 (UTC)[reply]