SymmetricBrighten - reflections This overrides the brighten...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* This is a simple extension of the RandomBrighten class. It shows an animation similar to the one in RandomBrighten except that the pattern is horizontally and vertically symmetric. The applet depends on RandomBrighten and on MosaicCanvas. */ * public class SymmetricBrighten extends RandomBrighten { p void brighten(int row, int col) { // Brighten the specified square and its horizontal and vertical
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: // reflections. This overrides the brighten method from the // RandomBrighten class, which just brightens one square. super.brighten(row, col); super.brighten(ROWS - 1 - row, col); super.brighten(row, COLUMNS - 1 - col); super.brighten(ROWS - 1 - row, COLUMNS - 1 - col); } }...
View Full Document

This note was uploaded on 01/15/2010 for the course CSC 115 taught by Professor Jackson during the Spring '09 term at University of Victoria.

Ask a homework question - tutors are online