Definitions

May 27, 2009

Add to your portfolio, after your paragraph about JavaScript, your definitions of the following terms (including an example for each):

  • variable
  • function
  • argument
  • event

Graphics Final Project

May 22, 2009

Your final project must demonstrate:

  1. Your knowledge of the Java Graphics class (and associated classes such as Polygon, Color, Image, and Font).
  2. Your knowledge of object-oriented programming.

In practical terms, this means you should write an application that puts a window on the screen and draws some stuff into the window. It should use classes and inheritance to organize the code that does the drawing.

You have already created the drawTriangle/fillTriangle functions and a color spectrum generator, and you are welcome to use that code in your final project. However, your project must demonstrate more than just these two completed assignments.

All projects must be turned in (email the working .java files) by the end of the day, Friday, May 29th.

Guest Speaker: Eric Nguyen

May 20, 2009

Eric is a Harvard graduate and currently works as an Interaction Engineer at Instructables. He’ll be talking about how he uses JavaScript to build good user interface experiences on the web.

Portfolio Additions

May 19, 2009

Add to your portfolio web site on the AOIT student web server:

1. Something that you wrote this year for Ms. Peters that represents your best work in English.

2. Your reflection, in one paragraph, about learning JavaScript. Make sure you discuss how it is different from HTML, as well as what you found easy, hard, and interesting (or uninteresting) about it.

Make these additions nicely integrated with your existing site. Be sure you modify your files locally (on your own computer) and then transfer them to the server for testing.

Due at the end of class (3:10 pm) Wednesday, 5/20/09.

NES Game Project

May 18, 2009

Self-select into groups of four and (by the end of class) email Mr. Chun your group’s name, the list of members, and a description of the Nintendo game you intend to build, including reference to any existing games that are similar and the results of your experiments/testing to date.

Also: Here is the nbasic Reference Manual.

Color Spectrum

May 18, 2009

Write a function that takes a number of steps (an integer, of course), a starting hue and an ending hue (both doubles from 0.0 to 1.0), and returns an array of Colors that represent the spectrum of hues from the starting to ending parameter.

Demonstrate your function by using your existing PainterPanel to loop over the array it returns, filling some shapes of your choice.

Due to be checked off in class on Thursday, 5/21/09.

Hint: While there is no Color constructor that takes HSB values, there is a static Color.getHSBColor method.

drawTriangle, fillTriangle

May 14, 2009

By the end of the day on Friday, May 15, email Mr. Chun the answers to the following questions and attach a screen shot image demonstrating your triangle-drawing code. (It should show both drawTriangle and fillTriangle.)

1. What arguments do you pass to your new methods?

2. Locating the drawTriangle and fillTriangle methods within PainterPanel makes it easy to call them, but what seems wrong about doing this?

3. What challenges will we face in trying to subclass Graphics if we decide that would be a better place to keep these methods?

4. Based on your way of finding the vertices of the triangle, how would you handle the requirement to accept a parameter int rotation whose values could range from 0-360?  What would you need to do, specifically, to modify the coordinates you currently generate?

At Your Service

May 11, 2009

It’s time to install your portfolio sites on a real server.  Thanks to a generous donation from a friend’s technology company, we now have an AOIT student web server ready to host your files.

Read more »

Painter

May 11, 2009

Get the Painter project files from Mr. Chun’s pickup folder and modify the paintComponent method in PainterPanel to produce your own drawing.  Exercise as many different methods of Graphics as you can.

Preloading

May 8, 2009

Read this article and then adjust the rollovers in your portfolio web site to use preloading.

Next Page »