This is the secret code used by Shadow Weavers to project their shadows onto the world.
/* Shadow Projection Code */
// Import the shadow libraries
import 'shadow-weaver.js';
// Create the shadow projection function
function projectShadow(x, y) {
return shadowWeaver(x, y, {
color: '#FF69F0',
size: 100,
opacity: 0.5
});
}
// Project the shadow
let shadow = projectShadow(10, 20);
console.log(shadow);
// Animate the shadow
function animateShadow(shadow) {
shadow.translate(5, 5);
shadow.rotate(45);
shadow.scale(2);
}
animateShadow(shadow);
Learn more about Shadow Projections
Get Shadow Projection Tools
Known Shadow Projection Bugs