Curry Stripe

to generate a new and unique variation

Source Code

Every variart piece is a small program. This is the one that drew what you're looking at.

var colors = ["#10181a","#d32325","#cde19a","#f9cdcc","#d3ecf3","#face2f","#996825","#ee9a6e","#353f84","#fdfacd","#57a430","#cbcd2c","#a2caed"];

var x = 0;
while (x <= width){
  var color = colors.splice(getRandomInt(0, colors.length -1), 1)[0];
  var stripeWidth = getRandomInt(10, 100);
  
  s.rect(x, 0, stripeWidth, height).attr({fill: color});
  
  x += stripeWidth;
}