part2 (1484B)
1--- Part Two --- 2 3Now you're ready to decode the image. The image is rendered by stacking the layers and aligning the 4pixels with the same positions in each layer. The digits indicate the color of the corresponding 5pixel: 0 is black, 1 is white, and 2 is transparent. 6 7The layers are rendered with the first layer in front and the last layer in back. So, if a given 8position has a transparent pixel in the first and second layers, a black pixel in the third layer, 9and a white pixel in the fourth layer, the final image would have a [1m[97mblack[0m pixel at that position. 10 11For example, given an image 2 pixels wide and 2 pixels tall, the image data 0222112222120000 12corresponds to the following image layers: 13 14Layer 1: [1m[97m0[0m2 15 22 16 17Layer 2: 1[1m[97m1[0m 18 22 19 20Layer 3: 22 21 [1m[97m1[0m2 22 23Layer 4: 00 24 0[1m[97m0[0m 25 26Then, the full image can be found by determining the top visible pixel in each position: 27 28 29 - The top-left pixel is [1m[97mblack[0m because the top layer is 0. 30 31 - The top-right pixel is [1m[97mwhite[0m because the top layer is 2 (transparent), but the second layer is 1. 32 33 - The bottom-left pixel is [1m[97mwhite[0m because the top two layers are 2, but the third layer is 1. 34 35 - The bottom-right pixel is [1m[97mblack[0m because the only visible pixel in that position is 0 (from layer 364). 37 38 39So, the final image looks like this: 40 4101 4210 43 44[1m[97mWhat message is produced after decoding your image?[0m 45 46