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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!