function badgeCode(g, context, frameNumber) {
context.fillStyle = "#34495e";
context.fillRect(0, 0, width, height);
const sideLength = 3;
const numberOfLines = 100;
const line = g.selectAll("g")
.data(d3.range(numberOfLines))
.join("g")
.attr("transform", `translate(-${width},${height * 0.13}) rotate(-6)`);
line.append("rect")
.attr("width", width * 1.2)
.attr("height", sideLength)
.attr("x", i => i * sideLength * 1.1 + frameNumber * 20 + Math.sin(i * 0.5 + frameNumber) * 10)
.attr("y", i => i * sideLength * 6)
.attr("fill", "#22a6b3");
line.append("rect")
.attr("width", width * 0.6)
.attr("height", sideLength)
.attr("x", i => width * 1.3 + i * sideLength * 1.1 - frameNumber * 20 + Math.sin(i * 0.5 + frameNumber) * 10)
.attr("y", i => 6 + i * sideLength * 6)
.attr("fill", "#30336b");
}