Skip to main content

Module picture

Module picture 

Source
Expand description

picture: a scene drawn into a PNG as the viewer draws it, and the Camera it is seen by, which also says where the pointer of a pixel goes (Camera::pointer): what is clicked in a picture is what the editor’s hit tests pick there, as for a click in a viewer.

A picture is drawn, not reasoned about: in plain numbers, by a z-buffered rasterizer, supersampled. It draws what the web viewer draws (web/src/partScene.ts, placed3d.ts, datums3d.ts, visuals3d.ts), in its colours: faces shaded by a light that moves with the eye, edges over them where they are seen, sketches and datums where they are not hidden, what is lit over it all, then what the step being edited draws, and in a corner the world’s axes, x red, y green, z blue.

Structs§

Camera
An orthographic camera: what a picture shows and where a pixel’s pointer goes.

Constants§

REACH_PX
How far a pointer reaches, in pixels. What a picture draws at a constant size on screen — a frame datum, a handle, a triad — is laid out in reaches of this many pixels, as a viewer lays it out in its own, so it is hit where it is drawn.

Functions§

picture
The picture of scene seen by camera, as a PNG: its part, and every part placed in it, but what hidden names — none, if the scene does not say; what lit lights, lit; and visuals, what a step being edited draws, over it all.