phetsims / geometric-optics

Geometric Optics is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
6 stars 5 forks source link

Show/hide button: animated ray tracing and image appearance #27

Closed sarchang closed 3 years ago

sarchang commented 3 years ago

Create a show/hide button above the reset button. Use EyeToggleButton in scenery-phet.

When on 'show', rays should emerge from the object, pass through the optic, and once they converge, the image appears. In the case when rays diverge, virtual rays should also be animated and the virtual image should appear.

'Hide' should make rays and image disappear.

veillette commented 3 years ago

ScreenShot: image

sarchang commented 3 years ago

Does show/hide button have to be circular? The one in scenery-phet is rectangular.

sarchang commented 3 years ago

see second screen of Proportions Playground: boolean round toggle button (reveal button) to find round version

veillette commented 3 years ago

Well done. Closing