''' NaNoPy can be used for rudimentary plotting, but you have to build the tools yourself. Later in the book, more effective methods for plotting will be introduced. This exercise is also intended as practice for deciphering code written by other authors. While exploring the code below, place comments describing what is happening. ''' import numpy as np from NaNoPy import Writer, Canvas, Color x = np.linspace(-3, 3, 80) y = np.linspace(1.5, -1.5, 40).reshape(40, 1) value = x**2 + y**2 + x * y image_1 = (127.5 + 127.5 * np.sin(value.reshape(40, 80, 1) + np.array([0, 2, 4]))).astype(np.uint8) x_2 = np.linspace(-2.2, 0.8, 80) y_2 = np.linspace(1.2, -1.2, 40).reshape(40, 1) c = x_2 + 1j * y_2 z = np.zeros_like(c) steps = np.zeros_like(c) for i in range(30): z = np.where(np.abs(z) < 2, z**2 + c, z) steps = steps + np.abs(z) image_2_monochrome = steps.reshape(40, 80, 1) * np.array([0, 1, 2]) image_2 = image_2_monochrome.astype(np.uint8) ''' **Problem 1** (A) What does `.reshape(40,1)` do to `y`? What shapes do the arrays `x`, `y`, and `x + y` have? (B) Decipher the operations performed to create `image_1` and `image_2`. Draw a matching flowchart on paper for each. (C) What does `.astype(np.uint8)` do? Google it or ask an LLM. ''' # Collapse me in VS Code # book-collapse-start image_3 = np.array([ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,253,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,252,252,252,251,251,251,255,255,255,253,253,253,252,252,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,252,252,252,253,253,253,255,255,255,255,255,255,255,255,255,211,211,211,142,142,142,250,250,250,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,253,253,255,255,255,255,255,255,255,255,255,238,238,238,188,188,188, 97, 97, 97, 78, 78, 78,217,217,217,254,254,254,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,252,252,252,255,255,255,254,254,254,170,170,170, 78, 78, 78, 21, 21, 21, 0, 0, 0,110,110,110,248,248,248,255,255,255,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,253,253,255,255,255,202,202,202, 55, 55, 55, 0, 0, 0, 0, 0, 0, 2, 2, 2,168,168,168,255,255,255,255,255,255,253,253,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,253,253,255,255,255,185,185,185, 5, 5, 5, 0, 0, 0, 95, 95, 95, 4, 4, 4, 73, 73, 73,255,255,255,255,255,255,227,227,227,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,254,254,254,235,235,235, 16, 16, 16, 12, 12, 12,170,170,170, 76, 76, 76, 0, 0, 0, 20, 20, 20,150,150,150, 90, 90, 90,147,147,147,255,255,255,252,252,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,251,251,251,255,255,255,138,138,138, 13, 13, 13,216,216,216,172,172,172, 0, 0, 0, 21, 21, 21, 20, 20, 20, 0, 0, 0, 12, 12, 12,240,240,240,254,254,254,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,251,251,251,255,255,255, 97, 97, 97,167,167,167,255,255,255,184,184,184, 80, 80, 80,188,188,188, 31, 31, 31, 0, 0, 0,177,177,177,255,255,255,252,252,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,250,250,250,253,253,253,148,148,148,228,228,228,251,251,251,255,255,255,255,255,255,158,158,158, 0, 0, 0,133,133,133,255,255,255,250,251,252,253,254,255,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,253,254,255,253,254,255,254,255,255,255,255,255,255,255,255,254,254,254,253,253,253,253,253,253,253,253,253,253,253,253,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,253,253,253,255,255,255,255,255,255,255,255,255,255,255,255,253,253,253,252,252,252,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,235,235,235,251,251,251,255,255,255,255,255,255,181,181,181, 47, 47, 47,166,166,166,255,255,255,253,252,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,252,252,252,253,253,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,237,237,237,223,223,223,224,224,224,227,227,227,224,224,224,222,222,222,215,215,215,164,164,164,210,210,210,237,237,237,243,242,242,249,254,255,222,243,249,222,243,250,229,246,251,255,255,255,255,255,255,255,255,255,255,255,255,231,247,251,222,243,249,222,243,249,245,251,253,255,255,255,255,255,255,234,234,234,222,222,222,225,225,225,224,224,224,228,228,228,248,248,248,255,255,255,255,255,255,253,253,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,255,255,255,236,236,236,224,224,224,255,255,255,255,255,255,254,254,254,255,255,255,204,204,204,175,175,175,229,229,229,255,255,255,251,251,251,252,252,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,251,251,251,255,255,255,113,113,113, 2, 2, 2, 6, 6, 6, 2, 2, 2, 5, 5, 5, 5, 5, 5, 6, 6, 6, 15, 15, 15, 9, 9, 9, 0, 0, 0,182,173,171,210,250,255, 5,162,210, 5,165,214, 53,184,223,255,255,255,254,255,255,252,254,255,255,255,255, 70,190,226, 5,164,213, 5,164,213,176,228,242,255,255,254,255,255,255, 94, 94, 94, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 10, 87, 87, 87,220,220,220,255,255,255,254,254,254,255,255,255,255,255,255,255,255,255,254,254,254,254,254,254,255,255,255,255,255,255,251,251,251,255,255,255,109,109,109, 19, 19, 19,254,254,254,254,254,254,255,255,255,119,119,119, 0, 0, 0, 0, 0, 0,146,146,146,255,255,255,255,255,255,255,255,255,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,251,251,251,255,255,255,116,116,116, 6, 6, 6, 11, 11, 11, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 9, 9, 9, 6, 6, 7,183,174,172,208,249,255, 0,160,209, 0,162,213, 48,183,222,255,255,255,254,255,255,252,254,255,255,255,255, 65,189,225, 0,161,212, 0,161,212,173,227,242,255,255,254,255,255,255, 84, 84, 84, 13, 13, 13,192,192,192,191,191,191,183,183,183,129,129,129, 6, 6, 6, 21, 21, 21,218,218,218,254,254,254,253,253,253,255,255,255,252,252,252,255,255,255,255,255,255,254,254,254,252,252,252,251,251,251,255,255,255,105,105,105, 12, 12, 12,253,253,253,254,254,254,243,243,243, 0, 0, 0, 92, 92, 92,233,233,233,240,240,240,252,252,252,171,171,171,107,107,107,250,250,250,253,253,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,240,240,240,226,226,226,228,228,228,190,190,190, 1, 1, 1, 1, 1, 1, 28, 28, 28,223,223,223,228,228,228,224,226,227,247,246,246,195,235,246, 1,164,213, 1,163,213, 50,183,222,255,255,255,254,255,255,252,254,255,255,255,255, 67,189,225, 1,162,212, 1,162,212,174,227,242,255,255,254,255,255,255, 83, 83, 83, 21, 21, 21,255,255,255,255,255,255,255,255,255,255,255,255,217,217,217, 5, 5, 5, 66, 66, 66,255,255,255,253,253,253,255,255,255,255,255,255,255,255,255,245,245,245,255,255,255,255,255,255,249,249,249,255,255,255,106,106,106, 15, 15, 15,253,253,253,255,255,255,254,254,254, 0, 0, 0,150,150,150,255,255,255,253,253,253,255,255,255, 73, 73, 73, 21, 21, 21,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,218,218,218, 0, 0, 0, 0, 0, 0, 32, 32, 32,255,255,255,255,255,255,255,255,255,255,255,255,193,233,245, 0,164,213, 0,163,213, 49,183,222,255,255,255,254,255,255,252,254,255,255,255,255, 66,189,225, 0,162,212, 0,162,212,174,227,242,255,255,254,255,255,255, 83, 83, 83, 19, 19, 19,252,252,252,252,252,252,251,251,251,248,248,248,255,255,255,110,110,110, 0, 0, 0,223,223,223,255,255,255,254,254,254,129,129,129, 33, 33, 33, 29, 29, 29, 51, 51, 51,188,188,188,255,255,255,255,255,255,106,106,106, 11, 11, 11,255,255,255,158,158,158, 55, 55, 55, 3, 3, 3, 30, 30, 30, 58, 58, 58,198,198,198, 88, 88, 88, 21, 21, 21, 15, 15, 15, 59, 59, 59,139,139,139,255,255,255,252,252,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,251,251,251,253,253,253,211,211,211, 0, 0, 0, 0, 0, 0, 31, 31, 31,247,247,247,253,253,253,249,251,252,255,254,254,193,233,245, 0,164,213, 0,163,213, 49,183,222,255,255,255,254,255,255,252,254,255,255,255,255, 66,189,225, 0,162,212, 0,162,212,174,227,242,255,255,254,255,255,255, 83, 83, 83, 19, 19, 19,255,255,255,255,255,255,254,254,254,251,251,251,253,253,253,178,178,178, 1, 1, 1,175,175,175,255,255,255,115,115,115, 0, 0, 0,167,167,167,204,204,204, 90, 90, 90, 1, 1, 1,210,210,210,255,255,255,104,104,104, 13, 13, 13,254,254,254,210,210,210,154,154,154, 1, 1, 1, 87, 87, 87,165,165,165,225,225,225,178,178,178, 51, 51, 51, 23, 23, 23,164,164,164,201,201,201,255,255,255,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,253,253,255,255,255,212,212,212, 0, 0, 0, 0, 0, 0, 31, 31, 31,249,249,249,255,255,255,251,253,254,255,255,255,193,233,245, 0,164,213, 0,163,213, 49,183,222,254,255,255,254,255,255,252,254,255,255,255,255, 65,189,225, 0,162,212, 0,162,212,174,227,242,255,255,254,255,255,255, 83, 83, 83, 19, 19, 19,255,255,255,255,255,255,254,254,254,252,252,252,255,255,255,193,193,193, 0, 0, 0,169,169,169,251,251,251, 0, 0, 0,157,157,157,255,255,255,255,255,255,255,255,255, 16, 16, 16,103,103,103,255,255,255,102,102,102, 14, 14, 14,253,253,253,255,255,255,255,255,255, 0, 0, 0,145,145,145,255,255,255,252,252,252,255,255,255, 86, 86, 86, 35, 35, 35,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,253,253,255,255,255,212,212,212, 0, 0, 0, 0, 0, 0, 31, 31, 31,249,249,249,255,255,255,251,253,254,255,255,255,192,233,245, 1,164,213, 0,163,213, 51,184,222,255,255,255,253,254,255,251,253,255,253,254,255, 68,190,225, 0,162,212, 1,162,212,173,227,242,255,255,254,255,255,255, 83, 83, 83, 19, 19, 19,255,255,255,255,255,255,254,254,254,251,251,251,253,253,253,173,173,173, 1, 1, 1,196,196,196,215,215,215, 1, 1, 1, 60, 60, 60, 76, 76, 76, 75, 75, 75, 80, 80, 80, 0, 0, 0, 56, 56, 56,255,255,255,103,103,103, 14, 14, 14,253,253,253,253,253,253,237,237,237, 0, 0, 0,133,133,133,252,252,252,246,246,246,252,252,252, 79, 79, 79, 33, 33, 33,252,252,252,252,252,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,253,253,255,255,255,212,212,212, 0, 0, 0, 0, 0, 0, 31, 31, 31,249,249,249,255,255,255,252,253,254,255,255,255,203,237,247, 0,164,213, 0,165,213, 27,175,218,254,255,255,255,255,255,255,255,255,255,255,255, 42,181,221, 0,164,213, 0,162,212,183,230,243,255,255,254,255,255,255, 83, 83, 83, 19, 19, 19,251,251,251,251,251,251,250,250,250,248,248,248,255,255,255, 95, 95, 95, 0, 0, 0,242,242,242,199,199,199, 2, 2, 2,105,105,105,136,136,136,135,135,135,137,137,137,171,171,171,194,194,194,255,255,255,105,105,105, 14, 14, 14,253,253,253,255,255,255,240,240,240, 0, 0, 0,135,135,135,255,255,255,247,247,247,255,255,255, 80, 80, 80, 33, 33, 33,254,254,254,253,253,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,253,253,255,255,255,212,212,212, 2, 2, 2, 2, 2, 2, 32, 32, 32,249,249,249,255,255,255,253,254,254,254,255,255,243,251,253, 24,174,218, 1,164,213, 2,164,213,112,204,232,231,247,251,235,248,252,128,210,234, 3,164,213, 2,165,214, 10,169,216,233,247,251,254,253,252,255,255,255, 83, 83, 83, 22, 22, 22,255,255,255,255,255,255,255,255,255,255,255,255,193,193,193, 0, 0, 0, 83, 83, 83,255,255,255,220,220,220, 0, 0, 0,180,180,180,255,255,255,255,255,255,255,255,255,163,163,163,192,192,192,255,255,255,105,105,105, 15, 15, 15,253,253,253,255,255,255,240,240,240, 2, 2, 2,136,136,136,255,255,255,247,247,247,255,255,255, 80, 80, 80, 36, 36, 36,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,253,253,255,255,255,211,211,211, 0, 0, 0, 0, 0, 0, 25, 25, 25,249,249,249,255,255,255,254,254,254,252,254,254,255,255,255,165,224,241, 0,161,212, 0,161,212, 0,161,212, 13,171,216, 15,171,216, 0,161,212, 0,162,212, 0,159,211,146,217,238,255,255,255,248,250,251,255,255,255, 82, 82, 82, 5, 5, 5,154,154,154,152,152,152,146,146,146, 90, 90, 90, 0, 0, 0, 42, 42, 42,232,232,232,252,252,252,254,254,254, 54, 54, 54, 27, 27, 27,222,222,222,247,247,247,154,154,154, 0, 0, 0,155,155,155,255,255,255, 99, 99, 99, 8, 8, 8,253,253,253,255,255,255,240,240,240, 0, 0, 0,132,132,132,255,255,255,247,247,247,255,255,255, 80, 80, 80, 16, 16, 16,233,233,233,247,247,247,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,253,253,255,255,255,216,216,216, 26, 26, 26, 26, 26, 26, 54, 54, 54,250,250,250,255,255,255,254,254,254,255,255,255,253,254,255,255,255,255,183,230,244, 65,187,223, 17,171,216, 0,164,213, 0,163,213, 15,170,216, 59,184,222,171,226,242,255,255,255,253,254,255,251,251,251,255,255,255,108,108,108, 25, 25, 25, 13, 13, 13, 10, 10, 10, 12, 12, 12, 37, 37, 37,124,124,124,239,239,239,255,255,255,252,252,252,254,254,254,224,224,224, 55, 55, 55, 18, 18, 18, 32, 32, 32, 17, 17, 17,133,133,133,255,255,255,255,255,255,121,121,121, 39, 39, 39,253,253,253,255,255,255,242,242,242, 26, 26, 26,147,147,147,255,255,255,248,248,248,255,255,255,166,166,166, 11, 11, 11, 12, 12, 12,130,130,130,255,255,255,251,251,251,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,253,253,245,245,245,245,245,245,247,247,247,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,254,255,255,255,255,255,255,255,232,247,251,210,239,248,210,239,248,229,246,251,255,255,255,255,255,255,253,254,255,255,255,255,255,255,255,255,255,255,249,249,249,246,246,246,249,249,249,249,249,249,251,251,251,255,255,255,255,255,255,255,255,255,254,254,254,255,255,255,254,254,254,255,255,255,255,255,255,213,213,213,200,200,200,238,238,238,255,255,255,254,254,254,255,255,255,249,249,249,246,246,246,255,255,255,255,255,255,254,254,254,245,245,245,250,250,250,255,255,255,255,255,255,255,255,255,255,255,255,229,229,229,203,203,203,231,231,231,255,255,255,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,252,254,255,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,251,251,251,254,254,254,255,255,255,255,255,255,255,255,255,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,252,252,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,254,254,254,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,253,254,255,253,254,255,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,253,253,253,253,253,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,255,255,255,255,255,255,255,255,255,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,253,253,253,253,253,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, ], dtype=np.uint8).reshape(40, 80, 3) # book-collapse-end ''' **Problem 2** Each of the arrays contains the RGB values of an image per pixel. (A) Draw one of the images above to a NaNoPy canvas using Writer.draw_pixel(). Hint: You can create custom colors using NaNoPy's `Color.custom(r=..., g=..., b=...)` (B) Update the screen after every ten pixels drawn to animate the image. The RGB colors "live" in the cube between (0, 0, 0) and (255, 255, 255). You can transform one color into another color using vectorized operations. (C) Reduce the brightness of the image by a factor 2. The operation: `image[:, :, [2, 0, 1]]` switches the order of the color channels. Since this does not change the shape of the array, you can interpolate between the original image and the modified image. (D) Animate the image by interpolating between the images with different weights. Hint: `Color.custom(...)` does not accept values above 255. You can use NumPy's `clip()` function to avoid this issue. '''