http://icac.no-ip.org/vicky/HW_03/
HW03-2:
http://icac.no-ip.org/vicky/HW_03-2/
I think this homework is really practical for us. In the first case I know how to use mouseX and mouseY. If I want the X-coordinate and Y-coordinate change with mouse, not just an immovable coordinate, I can use mouseX and mouseY to reach this instruct.
In the second case, we have to use if-else. And use “mousePressed” to tell computer if we click mouse on the board then instruct will execute. And if we want to draw different color and the different size of line, we have to draw some rectangle and decide any color and size we want. Then we have to limit which range will show the color and size of line. If those instruct are all correct, then it will show the result which we want.
No comments:
Post a Comment