Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 568 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 568 Bytes

Ray-tracer

This project uses PIL to render images from a dictionary of pixel colors, the rest is straight Python. Currently it generates this image: Ray-tracer

To generate different pictures, just change the create_word function in render.py. For exemple, to generate a picture of a single red sphere:

def create_world():
    S1 = Sphere((5, 3, 2), 1, (255, 0, 0), 0)
    return [S1]