我正在尝试用图形对象创建一个hyerbolic形状来绘制弧线,但是弧线与我想要绘制它们的方式相反(有点像一个脱节的圆圈)。有谁知道如何解决这个问题?
for ( int x1 = 0; x1 < 50; x1++ )
{
for(int y1 = 0; y1 < 50; y1++)
{
rotation = randomNum.nextInt(4) + 1;
//System.out.println(rotation);
// pick the pattern based on the user's choice
switch (choice)
{
case 1: //Arcs
if(rotation == 1 || rotation == 3){
g.drawArc(x1 * size, y1 * size, size, size, 0, 90);
g.drawArc(x1 * size, y1 * size, size, size, 180, 90);
}
else{
g.drawArc(x1 * size, y1 * size, size, size, 90 , 90); //Rotate image
g.drawArc(x1 * size, y1 * size, size, size, 270 , 90); //Rotate image
}