Path over Polygons
Use a Path to draw palettes instead of polygons so that d3 runs faster.
let trianglePath = ”
trianglePath += ‘M 19 342 L 38 342 L 19 361 Z’
Window and Shadow
Window towards the cursor and shadow away from the cursor. Window effect should be more pronounced than the shadow effect because it’s closer in view.
For mobile, use the gyroscope: Alpha, Beta (Y axis) [-180, 180], Gamma (X axis) [-90, 90]. Don’t use the full gyroscope because that would cause the user to have to flip the entire phone around to see the full animation.
Record initial gamma/beta values. Make a scale that maps to the width of the element.
Orchestra
High contrast vs low contrast. Clusters of lines. Horizontal lines, top left -> bottom right, top right -> bottom left. Closer in space rotate more.
foregroundRotate = 15
midgroundRotate = foregroundRotate * .9
backgroundRotate = midgroundRotate * .9
The lines look like they’re floating in space.
Color theory with HSL
Generative compositions with SVG Paths
Depth with translations and rotations
https://billyroh.com/albers/