Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions