ucx15 / Optics

A simulation of light reflection on a curved mirror made in Pygame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optics Simulation

This is a simulation of light reflection on a curved mirror made in Pygame.

concave mirror convex mirror

Usage

These values can be changed by replacing parameters of System class where it's called ( maybe on line 134)

  • radius of mirror
  • type of mirror
  • number of rays
  • width of light beam
  • position of light beam

You can use this code however you want, and improvement in code is appreciated.

- Made by ucx

About

A simulation of light reflection on a curved mirror made in Pygame


Languages

Language:Python 100.0%