Public
Edited
May 12, 2023
Insert cell
Insert cell
url = "https://o.img.rodeo/image/upload/v1683643167/vignette-exports/prod29550722_E2292021576_F_Frank_CO23_mlzmbz_EmbeddedImage_Doc22"

Insert cell
r = parseInt( color.charAt(1) + color.charAt(2), 16) / 255
Insert cell
g = parseInt( color.charAt(3) + color.charAt(4), 16) / 255
Insert cell
b = parseInt( color.charAt(5) + color.charAt(6), 16) / 255
Insert cell
transformation = `/e_recolor:${r*(2/3)}:${r*(2/3)}:${r*(2/3)}:${g*(2/3)}:${g*(2/3)}:${g*(2/3)}:${b*(2/3)}:${b*(2/3)}:${b*(2/3)}/`
Insert cell
transformedURL = url.replace(/\/v\d{10}\//, transformation)
Insert cell
viewof color = Inputs.color({label: "Color", value: "#c89264"})
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more