Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   help canvas circle problem (http://www.velocityreviews.com/forums/t753724-help-canvas-circle-problem.html)

tylertse 09-07-2011 03:46 PM

help canvas circle problem
 
i am drawing a circle for my assignment in simple canvas

public void drawJP(int width){
int height = width * 7/10;
SimpleCanvas c = new SimpleCanvas("Japan", width, height);

c.setForegroundColour(java.awt.Color.red);
for (int i = 0; i < 360 ; i++) {
c.drawLine( width/2 , height/2, (Math.sin(i) * width/6) , (Math.cos(i) * width/6) );
}
}


But a error showed up

drawLine(int,int,int,int) in SimpleCanvas cannot be applied to (int,int, double, double)

can anyone help me with that


All times are GMT. The time now is 04:49 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.