Variables Boolean 1 and 2: Select: Boolean 1 = draggable on x axis? Boolean 2 = draggable on y axis? Draw: not used Line: Boolean 1 = mouse down? Point: not used Delete: not used Eraser: not used Mouse override: Checks if the mouse if hovering over a button by recording all the Booleans Index: records how many times a loop has run Index 2: extra variable for when the index is already being used Original x and y: the coordinates where a line started Read x and y: used to get the encoded coordinates of the draw tool Save x and y: encodes the coordinates of the draw tool Lists: Pen Data: Has the pen color, coordinates, and pen up/down Pen Primitive Data: Only has coordinates Pen Raw Data: The coordinates not encoded