LaCaraDeOtro

Motion Designer

Lieu Berkeley, United States

Niveau Intermédiaire

Inscrit le 20 juin 2011

1 Commentaires

LaCaraDeOtro a commenté Générer des formes aléatoires sur un calque de forme à l'aide d'expressions

@Pixedo

You probably figured this out by now but in case somebody wants to define their own colors for the shapes, try this:

color0 = [255,0,0,255]/255; // red
color1 = [0,255,0,255]/255; // green
color2 = [0,0,255,255]/255; // blue
color3 = [255,255,0,255]/255; // yellow

colors = [color0,color1,color2,color3];
seedRandom(index,true);
colors[Math.floor(random(colors.length))];