Today's lab:
- Assume you are designing an application for your favorite destination and they have given you an image they want you to use on a splash screen or header. Write a program that will allow your user to evaluate 3 different fonts, and five different colors for the type and background.
- Select an image of your favorite place. Use a palette generation tools (I used https://www.canva.com/colors/color-palette-generator/, there are many others) to generate a color palette as a starting point.
- Using Java in Processing, write a program to display your image with a descriptive label, and a contrasting background.
- Create event handler functions to allow the user to toggle through the five different color options for the background and text; and to vary between the 3 fonts.
- Hints:
- Event handling. For efficiency, you may only want to call
draw()
from an event. Use redraw()
and noLoop()
to set that up. Your rendering (drawing) should still be state-driven and not in the event handler functions. - Use
Sketch / Add File
to add your image to your sketch folder. - Use
Tools / Create Font
to add the 3 fonts you want to use to your sketch folder. - Make your program extensible. Use arrays for your colors and fonts.
- This is due no later than Tuesday, October 15th, before next week's lab.
- Add comments to reflect your name, the date, what the program does and how to use it; e.g. what keys to press.
- Submit on Moodle.