/**
* Placeholder Image API
* GET https://api.globus.studio/v2/ph_image?width=200&height=150&color=%23FF5733
* Response: image blob
* Also usable as
*/
// JS (create img element)
async function placeholderImg(width, height, color) {
const url = `https://api.globus.studio/v2/ph_image?width=${width}&height=${height}&color=${encodeURIComponent(color)}`;
const img = document.createElement('img');
img.src = url;
document.body.appendChild(img);
}
placeholderImg(200, 150, '#FF5733');
// HTML
// 