Q = Pencil W = Line Tool E = Brush 1 = White 2 = Black 3 = Red
So much Debugging was required for this... All by me. Further down is how everything works Board - Each Cell is a hex code item on a list that chooses color. Gets drawn every frame with transparency for the drawing fade-in. Pencil - Modifies X or Y to snap to every 4th pixel, changes specific cells by x+y*50. Replaces the color code with the selected color code. Line - Saves the board. When you first Click, it snaps the pixel, points to the mouse, and moves 4 steps. Snaps the pixel, repeated until touching the mouse. When the mouse is moved, the saved board is redrawn and the previous process is repeated until the mouse is released. Brush - Snaps to the pixel based on the mouse location, moves up and left 4 pixels, then scrolls right to left top to bottom and if mouse is down, uses the xy-data to change each tile in the 3x3 radius. The green pixel to where your mouse is - Saves Board, then if mouse is not down, repeatedly draw the saved board and then draw the highlighted pixel. For the Brush ^ - does the same action, but scrolls through the 3x3 radius and draws 9 green pixels after every board refresh.