pygame is
Simple DirectMedia Layer is
Site Swing
Circle Refraction

Circle Refraction - 1.0.0

Ian Mallett (geometrian)



When light transverses media, i.e., changes what it is going through, it bends. Here's a simulation of that. Here, the light is passing through diamond circles. I have included materials for many different substances. Play around with it.


Home Page:


click to view original size


Circle Refraction - 1.0.0 - Jun 10, 2008 account Comments

If you wish to leave a comment with your account, please sign in first.

June 11, 2008 3:08pm - Ian Mallett - nickname: (geometrian)
It is actually accurate, although it does not yet deal with total internal reflection. But yes. Look at Snell's Law.
June 11, 2008 8:07am - Dylan J. Raub - nickname: (dylanjraub)
Very cool! Is this based on the law of refraction? I guess I mean to ask if it's actualy accurate.
June 10, 2008 10:03pm - Ian Mallett - nickname: (geometrian)
Version 1.0.0 released!

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Feb 21, 2017

Jan 31, 2017

Jan 24, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)