HI everyone, i am having troubles with drawing the pool table.
so like the standard pool table, we gonna have rectangle with
green color on it but with the red coating which is the STROKE .
and we gonna have 4 holes/pocket on pool table which is not
strange.
so pool table dimension is (900,600)
holes/pocket is has each of diameter 60 pixels.
hi m jst wondering if someone might no it. The deal is , i want to draw a dotted line from orgin , x=width/2 and y=height to current mouse location. window size would be (600,600). Here is my program but it isnt right. my goal is to draw a dotted line whenever i move my mouse to current mouseX and mouseY location. Follwing is my code.
Hi i am having problem with drawing the line from the previously mouse clicked and current mouse clicked location.
I got the distance but cant get the line. my code is as follwoing.