Assembly code

Contrary to what the title might imply, there is no assembly language in the pseudo-3D graphic put together for this Monday. In the script you won’t find a trace of the particular syntax, not even a line hidden between the numerous ones used to complete the illustration. There is an assembly line, though. And when you sample the animation, a way to hide the shapes drawn on screen.

Without turning this into a technical article, every Zdog class which lets you draw something, be it an ellipse with a fixed diameter, or a shape with a clear path, can be customized with one additional property: visible.

new Zdog.Shape({
	addTo: illustration,
	path: [{ y: 1.5 }, { y: 3 }],
	visible: false
});

You can exploit this option for specific reasons, to solve issues with overlapping objects, but evidently, with more transparent motives as well. See?

Assemble