我目前正在尝试编写一个绘图应用程序。但是,我不断收到错误。
这是我写的代码:
void draw () {
bezier(11, 11, 300, 60, 57, 551, 297, 543, 32, 43);
}
当我运行这个时,它抛出 PApplet 类型中的方法 bezier (float, float, float, float, float, float, float, float, float, float) 不适用于参数 (int, int,int,int,int,int,int,int,int,int)
。当我删除 32, 43
时,它运行正常。
我做错了什么?
最佳答案
这是您要调用的方法吗? https://processing.org/reference/bezier_.html
如果是这样,它需要 8 个参数...而不是 10 个。这可以解释为什么当你删除 32 和 43 时它会起作用。
关于java - 贝塞尔曲线()不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29626856/