Right now, when you drag the mouse quickly, the placement of the elements looks sort of stuttered. To fix this, I started implementing a higher-order function called "traverse_line" that applies a given function to every pixel across a line (from one 2D point to another). Then, between every frame, we would draw a line of pixels from the previous to current mouse position. This would have other helpful applications down the line.
Right now, when you drag the mouse quickly, the placement of the elements looks sort of stuttered. To fix this, I started implementing a higher-order function called "traverse_line" that applies a given function to every pixel across a line (from one 2D point to another). Then, between every frame, we would draw a line of pixels from the previous to current mouse position. This would have other helpful applications down the line.