Rainbow Dots
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 radius = getRandomInt(5, 25);
var margin = 25;
var hue = 0;
for (var x = 0; x < width; x += 50){
for (var y = 0; y < height; y += 50){
s.circle(margin + x, margin + y, radius)
.attr({
fill: Snap.hsl(hue, 1, 0.5)
});
hue += 0.007;
}
}
Copyright © 2014–2025 Kevin Marsh. All rights reserved. Questions? Comments? hello@variart.io