Spinning change
The goal with “Zdog Monday” is to appreciate pseudo-3d graphics for simply what they are, impressive visuals. But in the process I often indulge in specific art, art which is not possible in the body of <svg> elements of the context of <canvas> nodes. At least not without the help of JavaScript. A rotation on the y axis, for instance. With SVG you can angle a shape in only one sense.
<g transform="rotate(30)">
<!-- ... -->
</g> The transform attribute has a neat syntax where you can specify the origin of the rotation after the number of degrees.
-<g transform="rotate(30)">
+<g transform="rotate(30 10 20)"> But again the operation is the same; the rotation is either clockwise or counter-clockwise.
You could emulate a spin changing the horizontal scale instead of the angle
<g transform="scale(0.5 1)">
<!-- ... -->
</g> Scaling the shapes from the center, you would have the elements shrink, and effectively rotate in place with negative values. The effect is far from a rotation, however, as you directly change the size. There is no solid answer, only humorous workarounds.
With Zdog, the solution is within grasp. The rotation requires an angle in radians and the mention of the desired axis.
illustration.rotate.y = TAU / 8; The concept is so close, so down to earth that you cannot help to try out your luck, with a soft twist or of a full blown spin.
"Zdog Monday", a series of gorgeous pseudo-3D graphics built with Zdog in one day of the week.
There is a collection on CodePen, but if you want some context, and a few twists, I took care to write about each single piece.
- Beauty sleep
- Counting shapes
- Step through frames
- Spinning change
- One out of six
- Child's play
- Memory pop
- ZZ Anne
- Just keep spinning
- Advent of shapes
- Joystick drift
- Canard sans souci
- Brilliant idea
- Lighten up
- Guiding star
- Small whimsy
- Double axis
- Neigh we go round
- Having a ball
- Powerful mix
- Assembly code
- When lightning strikes
- Loopty loops
- Season's rewards
- Cherry-pick
- Trail blazer
- Hatch-a-doodle-doo
- Bubble up
- Think you can