by Danish Mujeeb (3 Submissions)
Category: Graphics
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(10 Votes)

This program simulates the inverse square law of light. To do so, the program gives you an empty (2D) space to place light sources. These sources can be either red, green, or blue. The user can place multiple light sources of any color.
The result.. A program which can produce very interesting colorful outputs by just randomly placing light sources. Moreover, once rendered, the program gives you the RGB component of any pixel present in the output. Thus you like a color, take the RGB value to any other program and reproduce it :)
Once this is done, the program can simulte(upon pressing render) how these light sources will mix and match and produce an output. The screen shot has been prepared by placing 1 green, 1 blue, and 1 red light sources.
Assumes
This program does not treat the inverse square law of light emperically. Rather the law is made to work for this program only. Hence the constants or relationships are not consistent with those observed in the real world.
Download Light Studio (89 KB)