|
Post by Carlos on Dec 21, 2014 20:39:08 GMT -8
Is it possible to draw a half circle near the edge of the screen? I'm trying to put a full circle near it, but it when it gets off the screen it dissapears completely. This is what I'm trying to achieve: Thank you in advance.
|
|
|
Post by jamesbowman on Dec 22, 2014 7:44:23 GMT -8
Are you using Vertex2ii to draw the circle? If so, that's probably the problem, because Vertex2ii() cannot handle negative coordinates. So instead of GD.Vertex2ii(circle_x, circle_y); use: GD.Vertex2f(16 * circle_x, 16 * circle_y); The book covers this on page 55.
|
|
|
Post by Carlos on Dec 22, 2014 9:41:38 GMT -8
Thank you, this works perfectly!
|
|