public RotateDemo() {
		 
		MinuetoWindow window;			// The Minueto window

		MinuetoImage imageTank;				// Original image
		MinuetoImage imageRotate;				// Rotated image		
		 		
		double r = 0.1;						// Rotation angle
	
		// Create a 640 by 480 window
		window = new MinuetoFrame(640, 480, true);
		
		
		// Load our tank image.
		try {
			imageTank = new MinuetoImageFile("images/tank.png");			
		} catch (MinuetoFileException e) {
			System.out.println("Could not load tank file");
			System.exit(0);
			return;
		}
		
		// Show the game window.
		window.setVisible(true);
		
		// Game/rendering loop
		while(true) {
		
			// Clear the window.
			window.clear();
		
			// Change the rotation angle. Our demo does a demonstration
			// of rotation by changing the rotation angle at each frame.			
			r = r + 0.008;
			if (r > 100000) { r = 0.1; }
		
			// Rotate the image			
			imageRotate = imageTank.rotate(r);
			
			// Draw the transformed image.					
			window.draw(imageRotate, 50, 50);
			
			// Render all graphics in the back buffer.
			window.render();
			
			try {
				Thread.sleep(10);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				//e.printStackTrace();
			}
		}		
							
	}