Skip to content

adusca/ray-tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages