jeudi 12 novembre 2015

change stripe angle of background svg

I´ve got a code from: [SVGeneration.com] DIAGONAL STRIPE

this: function generate(inputArray){ var scale = inputArray['scale']; var width = inputArray['stripe-width']; var background = inputArray['background']; var stripe = inputArray['stripe']; return "<svg xmlns='http://ift.tt/nvqhV5' width='"+scale+"' height='"+scale*2+"' viewBox='0 0 5 10'>\n"+ " <rect width='110%' x='-5%' y='-5%' height='110%' fill='#"+background+"'/>\n"+ " <line x1='-2' y1='1' x2='7' y2='10' stroke='#"+stripe+"' stroke-width='"+width+"'/>\n"+ " <line x1='-2' y1='6' x2='7' y2='15' stroke='#"+stripe+"' stroke-width='"+width+"'/>\n"+ " <line x1='-2' y1='-4' x2='7' y2='5' stroke='#"+stripe+"' stroke-width='"+width+"'/>\n"+ "</svg>"; }

But I don´t know How to change de angle of stripes. I would like the same angle but flip horizontal.

Could anybody help me please

thanks

Aucun commentaire:

Enregistrer un commentaire