简体   繁体   中英

Bezier() not working

I'm currently trying to write a drawing application. However, I keep getting an error.

This is the code I wrote:

void draw () {
    bezier(11, 11, 300, 60, 57, 551, 297, 543, 32, 43);
}

When I run this, it throws 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) . When I remove 32, 43 it runs fine.

What am I doing wrong?

Is this the method you are trying to call? https://processing.org/reference/bezier_.html

If so, it takes 8 arguments... not 10. Which would explain why it works when you remove 32 and 43.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM