Question: Using processing Inside draw( ) function, design following mechanisms along with for loop to read pixels; a) image( ) function to draw b) Use

Using " processing"

Inside draw( ) function, design following mechanisms along with

for loop to read pixels;

a)

image( ) function to draw

b)

Use red( ), green(), and blue( ) functions to show only red,

green, or blue channels.

c)

Mapping between the pixel position, bar height, bar color ,

font color and pixel position:

a)

To show an interactive RGB value on a specific pixel

based on the position of mouse cursor (mouseX &

mouseY), create a bar graph (e.g., use rect( ) to create

3 bars) and make the heights of bars reflecting the

intensities of red, green, and blue color on each pixel.

Feel free to choose another shape (through changing

the size of ellipse) showing intensity of color value.

b)

Useful Processing commands;

text( ), textFont( )

Color, image( ), fill( )

updatePixels();

loadPixels();

d)

Apply key interactions to different pre-built filter effects.

e)

Based on simple math operators (+, -, *, %), design your

own image processing color filters which can be operated

through key board interaction (e.g., pressing r to increase

redness etc.)

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!