Question
Assignment 3 - Pixel Tinting! Part 2 - Go Dutch! Merge your headshot with a transparent Royal Dutch Navy flag. Part 4 - Animate! Make
Assignment 3 - Pixel Tinting!
Part 2 - Go Dutch! Merge your headshot with a transparent Royal Dutch Navy flag.
Part 4 - Animate! Make an animation of your headshot that goes psychedelic for
Part 2 - Go Dutch! (25%)
For Part 2 of the assignment, you are to use base code Assignment3Part2.java as
a starting point. The objective is to create a program that merges your headshot
with the historical flag of the Royal Dutch Navy:
Hint: Use a while loop to loop through the pixels in your image, tinting the first
third of the pixels orange, the second third of the pixels white, and the last third
of the pixels green. Note that you want to move the RGB values towards orange,
white, or green but not completely because then it would just look like the flag
image above.
In the Main() method, write code that will load in a headshot image called
myHeadShot.jpg (you will have to rename your photo to this). You should
accomplish everything you need to do in the Main() method of
Assignment3Part2.java.
Part 4: Animate! (20%)
Make an animation of your headshot that goes psychedelic three or four times,
then goes Dutch, and then slowly gets more and more blurred. Place this code
into a file called Assignment3Part4.java.
You can use the
Thread.sleep()
method (see Part 1) to
pause the image for a while between each change (remember: 1,000
milliseconds is 1 second).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started