Candy Stripe
to generate a new and unique variation
Every variart piece is open source, you can see exactly how it is drawn from the code.
var colors = ['#F266A7', '#F69240', '#FAF54E', '#B5E052', '#76D6CC', '#D028BA'];
var startIndex = getRandomInt(0, colors.length - 1);
var strokeWidth = 30;
var gap = 3;
var g = s.g();
var i = 0;
for (var x = -(width * 2); x < (width * 2); x += strokeWidth + gap){
g.append(s.line(x, -height, x, height).attr({
stroke: colors[(startIndex + i) % colors.length],
strokeWidth: strokeWidth
}));
i += 1;
}
g.transform('r'+getRandomInt(0, 90));
Copyright © 2014–2026 Kevin Marsh. All rights reserved. Questions? Comments? hello@variart.io