# Show to python where to find the modules import sys sys.path.append('..')from scene import * from light import Spotlight from camera import Camera from raytracer import raytracer_render from matplotlib.image import imsave camera = Camera(200,200,2) materiau_sphere = Material(Vector((0,0,1)), .01, .5, .01, 1) sphere = Sphere(Vector([0,0,3]), 1, materiau_sphere) lumiere = Spotlight(Vector((1,1,0)), Vector((1,1,1))) scene = Scene() scene.add_object(sphere) scene.add_light(lumiere) affiche = raytracer_render(camera, scene) imsave('one_sphere.png',affiche)