Takes as input the picture pipe.png (left) and displays as output the transformed picture Xpipe.png (right).
It must display the transformed picture on the screen, using the show() method in the Picture data type. The main() method takes three command-line arguments: the name of an image file, a binary password (the initial LFSR seed), and an integer (the tap position).
Create a new Color object using the result of the xor operations, and set the pixel in the new picture to that color. Do the same for the green (using another new 8-bit integer) and, finally, the blue. Then, xor the red component with a newly-generated 8-bit integer. extract the red, green, and blue components of the color (each component is an integer between 0 and 255). The transform() method takes a Picture and an LFSR as arguments and returns a new Picture object that is the result of transforming the argument picture using the LFSR as follows: For each pixel ( col, row), in column-major order-(0, 0), (0, 1), (0, 2).
The Picture data type is part of stdlib.jar the Color data type is a Java library. Your first task is to write a data type that simulates the operation of a LFSR by implementing the following API: public class LFSR Here are a few more details about the API.