Question
Useing Jython Environment for Students (JES), Version 5.0 Python: Strange Palette: You will be creating a modified image where the colors are changed to create
Useing Jython Environment for Students (JES), Version 5.0
Python: Strange Palette:
You will be creating a modified image where the colors are changed to create an image that leans heavily towards the blue-green-purple end of the spectrum. Below, pseudocode is provided; remember that italicized sans text is pseudocode and bold monospace text is actual code.
def main( ):
# get the picture and display
Get a picture from the user
Display the picture
for px in getPixels( your picture ):
If the red value of the pixel is over 200, set to 0
If the green value of the pixel is under 100, set it to double the current value
If the blue value of the pixel is 0, set it to 255
Update the display to reflect the changes to the picture
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