第一个圆的边界未显示在重叠的圆圈中
我试图绘制两个相交的圆圈,如附件快照所示。
我的第一个圆的边界未显示,因为右上的第二个圆圈覆盖在上面。
有没有办法可以看到相交区域中两个圆的边界? https://i.sstatic.net/o0xsm.png“ alt =”在此处输入图像说明”>
我的代码:
int x = 250;
void setup()
{
size(500,500);
background(255);
}
void draw()
{
coolCircles();
}
void coolCircles()
{
stroke(150);
ellipse(180, 250, x, x);
ellipse(360, 250, x, x);
}
I am trying to draw two intersecting circles, as shown in the attached snapshot.
The border of my first circle on left is not displayed since the second circle on right is overlayed on it.
Is there a way that I can see the border of both the circles in the intersecting region?
My code:
int x = 250;
void setup()
{
size(500,500);
background(255);
}
void draw()
{
coolCircles();
}
void coolCircles()
{
stroke(150);
ellipse(180, 250, x, x);
ellipse(360, 250, x, x);
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,您正在绘制填充圆圈。使用
nofill(nofill()
:Actually you're drawing filled circles. Use
noFill()
: