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