Do you have to load a script into your html file to get processing to work?

I am going through processing basics videos. I am initializing a "int" variable and its throwing an error. This is my code.



      <meta charset="UTF-8">
      <script language="javascript" type="text/javascript" src="libraries/p5.js"></script> 
      <script language="javascript" src="libraries/p5.dom.js"></script>
      <script language="javascript" src="libraries/p5.sound.js"></script>
      <script language="javascript" src="processing.js"></script> 
      <script language="javascript" src="processing-3.3.5/processing.exe"></script> 
      <script language="javascript" src="processing-3.3.5/processing-java.exe"></script> 
      <!-- this line removes any default padding and style. you might only need one of these values set. -->







    int circleX;

    void setup(){
        size(600, 400);
        circleX = 50;

    void draw(){
        ellipse(circleX, 180, 24, 24);


  • Never mind I figured it out. You have to initialize the processing and processing-java file.

Sign In or Register to comment.