Hi, I'm working on an assignment and, after a significant amount of googling and reading through my textbook, I can't seem to find a tutorial for anything similar to what I need to do.
My aim is to produce a tool which draws a line on the screen based on certain button selections. There is a text input for the length of the line in pixels, directional buttons in which the line should be slowly drawn, and a colour switcher.
I've already found out how to switch the colour of a 2D graphic based on the button selection, but can't find anywhere how to gradually draw a line (with a GIF image of a pen following along), based on the press of a button with a specific pixel amount - and have the line remain persistent when the next is drawn. Most line drawing tutorials use co-ordinates, which I don't think is what I need.
Can anyone point me in the right direction so that I can learn how to do this?