function badgeCode(g, context, frameNumber) {
context.fillStyle = "#2c3e50";
context.fillRect(0, 0, width, height);
const data = d3.range(1000).map(d => [Math.random()*width, Math.random()*1150])
const color = d3.scaleOrdinal(d3.schemeBlues[9])
const svg = d3.select("body").append("g")
.attr("width", width)
.attr("height", 1050);
g.selectAll("ellipse")
.data(data)
.enter()
.append("ellipse")
.attr("cy", d => d[1])
.attr("cx", d => d[0])
.attr("rx", 30)
.attr("ry", 50)
.style("fill", d => color(d[0]))
.style("stroke", "gold")
.style("stroke-width", 2)
}