Skip to main content

picture

Function picture 

Source
pub fn picture(
    scene: &SceneState,
    lit: Option<&Lighting>,
    visuals: &[Visual],
    camera: &Camera,
) -> GeopResult<Vec<u8>>
Expand description

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.

A placed part’s colour is that of the scene’s instances, where it is one of them, else that of the part’s own (see super::ViewInstance).