import graphics.*; //handles low level rendering class RayTracerApplet extends MISApplet { protected int[][][] framebuffer, bgbuffer; //2D array of RGB values protected Shape[] shapes; protected Light[] lights; protected int[] ambient = {0,0,0}; protected double F; protected boolean doReflections = true, doRefraction = true; //so we don't get stack overflow private int MAX_RECURSION = 5; public void initialize() { super.initialize(); framebuffer = new int[H][W][3]; //rgb values bgbuffer = new int[H][W][3]; //rgb values } public void initFrame(long time) { for (int w=0; w