function badgeCode(g, ctx, frameNumber) {
const size = 10;
var colors = ["#26294a", "#01545a", "#017351", "#03c383", "#aad962",
"#fbbf45", "#ef6a32", "#ed0345", "#a12a5e", "#710162"]
d3.range(0, width/size).forEach(function(x) {
d3.range(0, height/size).forEach(function(y) {
ctx.fillStyle = colors[Math.floor(colors.length*Math.random())];
ctx.fillRect(x*size, y*size, size, size)
});
})
ctx.fillStyle = "rgba(0,0,0,0.6)";
ctx.fillRect(300, 40, width-600, 400);
ctx.fillStyle = "rgba(0,0,0,0.6)";
ctx.fillRect(0, 40, width, 400);
}