贝塞尔曲线()不工作
Bezier() not working
我目前正在尝试编写绘图应用程序。但是,我一直收到错误消息。
这是我写的代码:
void draw () {
bezier(11, 11, 300, 60, 57, 551, 297, 543, 32, 43);
}
当我 运行 这个时,它抛出 The method bezier (float, float, float, float, float, float, float, float, float, float) in the type PApplet is not applicable for the arguments (int, int, int, int, int, int, int, int, int, int)
。当我删除 32, 43
时,它 运行 没问题。
我做错了什么?
这是您要调用的方法吗? https://processing.org/reference/bezier_.html
如果是这样,它需要 8 个参数...而不是 10 个。这可以解释为什么当您删除 32 和 43 时它会起作用。
我目前正在尝试编写绘图应用程序。但是,我一直收到错误消息。
这是我写的代码:
void draw () {
bezier(11, 11, 300, 60, 57, 551, 297, 543, 32, 43);
}
当我 运行 这个时,它抛出 The method bezier (float, float, float, float, float, float, float, float, float, float) in the type PApplet is not applicable for the arguments (int, int, int, int, int, int, int, int, int, int)
。当我删除 32, 43
时,它 运行 没问题。
我做错了什么?
这是您要调用的方法吗? https://processing.org/reference/bezier_.html
如果是这样,它需要 8 个参数...而不是 10 个。这可以解释为什么当您删除 32 和 43 时它会起作用。