Save Point
README.md
photoView
The close look at an instant print, used by stations.InstantPrint (Look while holding one, and Look at photo on a pinned or lying print).
open(ids, start?, onClose?)bringsids[start]up to fill ~76% of the screen's height (kept inside a phone's width) over the dimmed, blurred room;close()lowers it;isOpen(),showing().- The print is re-drawn on its own: a copy of its frame, backing and its own film material (photo, instant-film look and development stage) stands on the
photoviewrender layer at y = -320 with a soft key lamp and an even fill of its own, rendered by an isolated orthographic camera into a texture the size it is shown at (pixel ratio included, 256-1600 px tall). The texture is shown in aviewportwidget with a drop shadow, so the photo reads the same in a lit or dark room and stays sharp (no depth of field). - Controls (
stations.photoViewinput map, suppressing walking, looking, the held print's own map, the hangout keys and the app menu while up): tilt (mouse / right stick / drag) turns it a few degrees in the hand and, zoomed in, looks across it; zoom (wheel / RT-LT / pinch, up to 3.2x); Lower (R, Esc, Backspace, right mouse / B, Y / Back).stations.photoViewPage(when there is more than one photo): previous / next (A-D, arrows / d-pad, shoulders / ‹ ›). - Test hooks:
state(),nudge(zoom?, lookX?, lookY?),page(d).