6.837 Project 1
-- Magnifying Glass --
 

 
Source:
AlphaApplet.java
Playfield.java
AnimatedSprite.java
AlphaRaster.java
Raster.java
Filters.java

 
Instructions:
 

1) Drag the mouse across the applet to move the "Magnifying Glass".

2) Hit any key on the keyboard to change the lens color.
 
 

This applet implements a sprite animation technique proposed in the assignment.

The following optimization techniques are being used:

    - Offscreen painting: allows for faster painting on-screen by avoiding calculations in between painting operations on the same cycle

    - Paint clipping: allows only the area of the image that has been changed with respect to its previous state to be redrawn on the screen

The applet also uses the alpha compositing technique to paste images onto the screen.

The applet also uses a simple magnifying filter to calculate the image on the magnifying glass.
 

Go Back