The progressing program uses an external library, which cannot be run on the webpage with processingjs

Newcomer into csdn, I am very sorry for the spicy eyes of the article layout ...

Ask the big guys for help, processing and html questions.

I wrote a small work on processing and want to post it to the website (countdown to the anniversary) reference website

Completed the configuration file of processing.js.
Insert picture description here
I added background music to the original program, so I used the external library Minim and imported the minim class, but the html seems to be unrecognizable and the program cannot run.
Insert picture description here
This is the case where the external class mini class is not used, and the program can run normally.
Insert picture description here
When the comment line is opened and the Minim class is used, the program does not enter the draw function, so the white square does not appear.
Insert picture description here

In addition, when I try to use a picture as a background, I can't read it. Insert picture description here
The same is true when the filepath is changed to "1.jpg".

Is there any solution to these? The original program can be used in processing.

Or should I rewrite the entire program in HTML? ? ? ?

Trouble God answers, beg
Insert picture description here

Published 1 original article · won 9 · visits 43

Guess you like

Origin blog.csdn.net/moixx/article/details/105595628