â„–15385321[Quote]
text fail
â„–15385326[Quote]
APPROVE THIS NOW JANJANS
â„–15385369[Quote]
media pending approval
â„–15385381[Quote]
>example 3 (with code)
function animate(p5, props) {
const {
mainImage,
size,
currentFrame,
totalFrames,
bgColor,
featureValue
} = props;
const biggestImageDimension = mainImage.width > mainImage.height ? mainImage.width : mainImage.height;
const t = currentFrame / totalFrames;
const glitchIntensity = featureValue / 100;
p5.background(bgColor);
p5.push();
// Crazy rotation based on frame and feature value
p5.rotateX(Math.sin(t * Math.PI * 2) * glitchIntensity * 2);
p5.rotateY(Math.cos(t * Math.PI * 2 + 0.5) * glitchIntensity * 2);
p5.rotateZ(Math.sin(t * Math.PI * 4) * glitchIntensity * 1.5);
// Scale pulsing and glitching
const baseScale = (size / biggestImageDimension) * 0.63;
const scaleGlitch = 1 + Math.sin(t * Math.PI * 8) * 0.3 * glitchIntensity;
p5.scale(baseScale * scaleGlitch);
// Translate with crazy offsets
p5.translate(
Math.sin(t * Math.PI * 6) * 50 * glitchIntensity,
Math.cos(t * Math.PI * 7) * 50 * glitchIntensity,
Math.sin(t * Math.PI * 5) * 30 * glitchIntensity
);
// Random color glitches
const hueShift = (t * 360 + Math.sin(t * Math.PI * 12) * 180 * glitchIntensity) % 360;
p5.colorMode(p5.HSB);
p5.fill(hueShift, 200, 255);
p5.stroke(360 - hueShift, 255, 200);
p5.strokeWeight(3 * glitchIntensity);
// Draw multiple distorted shapes
p5.texture(mainImage);
const shapeType = Math.floor(t * 8 + Math.sin(t * Math.PI * 3) * 2) % 3;
if (shapeType === 0) {
p5.plane(mainImage.width, mainImage.height);
} else if (shapeType === 1) {
p5.sphere(Math.max(mainImage.width, mainImage.height) * 0.6);
} else {
p5.box(mainImage.width * 0.8, mainImage.height * 0.8, Math.sin(t * Math.PI * 2) * 200 + 100);
}
// Add extra glitch boxes
if (glitchIntensity > 0.3) {
p5.push();
p5.translate(Math.sin(t * Math.PI * 11) * 100, Math.cos(t * Math.PI * 13) * 100, 0);
p5.fill(hueShift + 120, 200, 255, 100);
p5.noStroke();
p5.box(100 + Math.sin(t * Math.PI * 15) * 80);
p5.pop();
}
p5.pop();
p5.colorMode(p5.RGB);
} and oreos
â„–15385536[Quote]
also if you put "random" it does, well random. If that matters
â„–15385573[Quote]
>>153855683dgifmaker sex will always be a gem