img_points = {
const img = document.querySelector("#roses");
img.src = roses;
img.crossOrigin = "Anonymous";
const canvas = document.createElement('canvas');
canvas.width = img.width;
canvas.height = img.height;
canvas.getContext('2d').drawImage(img, 0, 0, canvas.width, canvas.height);
return svg`<svg height=${img.height} width=${width}>${_.range(1000).map(d => {
const x = Math.random() * width;
const y = Math.random() * img.height;
const rgb_color = canvas.getContext('2d').getImageData(x, y, 1, 1).data;
const color = `rgb(${rgb_color[0]},${rgb_color[1]},${rgb_color[2]})`;
return `<circle cx=${x} cy=${y} fill=${color} r=10 />`;
})}
</svg>`;
}