Skip to content

adusca/ray-tracer

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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