Lens Toy

A gravitational lens simulator in Javascript/HTML5

Loading gravitational lens model...


What is gravitational lensing?

Spacetime around massive objects, such as galaxy clusters, is curved. This means that the path of light from a more distant object, such as a quasar, gets deflected. This changes the apparent direction that the light is coming from. This effect can magnify and distort the image of the background object into multiple images and arcs. It is known as gravitational lensing.

What is LensToy?

LensToy is our attempt to create a gravitational lens modeller using Javascript and <canvas>.

It shows you a real astronomical image of a tiny patch of sky. Each blob* in the image is a distant galaxy. We have modelled 4 foreground galaxies at the positions of the yellow blobs. Use your cursor to position a distant galaxy. We then calculate how the foreground galaxies will distort the light from the distant galaxy and plot it on top.

We've only just started making LensToy so it is very basic right now.

* a highly technical astronomical term