EZ is a multimedia library designed to make it easier for novice programmers to quickly build Java applications that incorporate graphics and sound.
graphics file - v1.23 (February 1st, 2018).
If clicking on it doesn't provide a download prompt, right click > save as.
Major updates to EZImage, EZInteraction, and EZSound. These changes have not yet been added to the documentation webpage. For a better description see the change log and the comments within the file.
When Eclipse runs for the first time, it will ask you where you want to setup the workspace. Use a location you know you will be able to access.
Once you have the EZ file saved, open Eclipse. If you do not already have a project, create a new one. File>New> Java Project>
You are now ready to code.
Make a new class file in your project. Right click the src folder> New> Class
To use EZ, some changes will be made to the file.
At the top of the file add:
Erase the contents of main(), then add the following lines:
EZ.addText(100, 100, "Hello World", Color.BLACK);
Your code should look like the following:
The three lines each had a specific purpose in the program.
import java.awt.Color; - Allows you to specify Color for EZ elements.
EZ.initialize(200,200); - Creates a window having a width of 200 pixels and height of 200 pixels.
EZ.addText(100, 100, "Hello World", Color.BLACK); - Creates the text on the window. Without this, the window would have been blank. The 100,100 states where the center of the text will be located in the window's coordinates. The String "Hello World" will be displayed in the specified Color.BLACK.
To learn of more things you can create, see the documentation of EZ's add methods.
Dylan Kobayashi - firstname.lastname@example.org
Office Hours: TBD