如何在 processing.exe 中绘制半透​​明箭头

How to draw semi-transparent arrow in processing.exe

如何在 processing.exe 中绘制一个半透明的箭头,以便在普通背景上每个箭头的颜色统一?

https://processing.org/discourse/beta/num_1219607845.html 失败 - 它在杆身和头部重叠处显示更深的颜色。

您可以使用 beginShape() 函数和 vertex() 函数来绘制任何您想要的形状,包括箭头。

这是来自 the reference 的示例:

beginShape();
vertex(20, 20);
vertex(40, 20);
vertex(40, 40);
vertex(60, 40);
vertex(60, 60);
vertex(20, 60);
endShape(CLOSE);


(来源:processing.org

您必须找出需要绘制的点才能创建箭头,但您不能使用线来完成,因为它们会重叠。

或者,您可以考虑创建箭头图像并绘制图像。