AoCBanner = ({
title = "Advent of Code",
story = "story",
year = "2021",
day = "00",
fill = "lime",
flood = "red" ,
background = "black",
radius = 6,
blur = 6,
opacity = .5
}) => {
const banner = d3.create("svg")
.attr("width", width)
.attr("height", width/16*9)
.attr("viewBox", [0,0,16*72,9*72])
.style("background-color", background)
;
style(banner);
const defs = banner.append("defs");
head({defs, title, story, year, day, id: "advent-of-code", fill});
filter({defs, id: "glow", flood, radius, blur, opacity});
glow({sketch: banner, id: "advent-of-code", filter: "glow" });
return banner.node()
}