How can I import/include a Class file in Processing-js?
in
Processing with Other Languages
•
1 year ago
I designed some class like CRect.But I only write it in my html file.
I want to mange this class in different file. If I want to use them, I could write "import mypackage.CRect" in Java.
Or I could write "Include "rect.h"" in C++;
But I don't know how to write it in Processing-js. Please tell me the method.Very thankful.
class CRect{
int
left
= 0;
int
top
= 0;
int
right
= 0;
int
bottom
= 0;
CRect(){}
}
1