advertising not welcome. i n s t r u c t i o n s - - - - - - - - - - - - - - - - click to fire the laser. use arrow keys to move the prism. use wasd to move the laser. press space to pause the colors so you can screenshot it. Use the slide to turn the prism. Fun fact: 95% pen! (Now that it has been remixed, probably more like 94% or 93%...) Science - - - - - - - - - - - - How do different colors travel in a prism? This angle depends on the refractive index of the material in the prism, which can vary with wavelength of light. Wavelength of light in turn, corresponds to different colors of light. So these different colors will travel at different angles in the prism and exit as a "rainbow" or spectrum of colors, rather than as white light. How does a prism work and why does it work? A prism works because the different colors of light travel at different speeds inside the glass. Because the colors of light travel at different speeds, they get bent by different amounts and come out all spread out instead of mixed up. What is a prism made of? As the light from the sun passes through the prism, the light refracts (bends) and separates, making the colors of the visible spectrum. You can find different kinds of prisms made from both optic glass and acrylic. Thank you for viewing my simulator! if you enjoyed, please propose to be featured! tysm! :) - - - - - - - - - - - -
Credits 99% to @-MinttTea-. All I did was add something when you press "t" I now have added a mute feature, mainly for me when I edit it due to the fact that I often have a hard time hearing and when I do, music sounds a little weird. To activate mute, press "m." To unmute, press "u." I will add all major updates to the notes and credits. If you like this project, please leave a heart and star at the original because that was allllllllllll of the inspiration and most of the code. My parts took like 2 seconds and next to no effort.