Processing JS: WordPress Plugin | Keyvan Minoukadeh.
Add this plug in to your wordpress.
Make sure to use HTML not Visual mode
![]()
insert this tag
<script type="application/processing">
or click the processing button
![]()
Then paste in your code.
BAM
Processing JS: WordPress Plugin | Keyvan Minoukadeh.
Add this plug in to your wordpress.
Make sure to use HTML not Visual mode
![]()
insert this tag
<script type="application/processing">
or click the processing button
![]()
Then paste in your code.
BAM
void setup() {
size(600,600);
background(125);
smooth();
frameRate(24);
}
//Draw a line from previous mouse location to current mouse location.
void draw() {
noStroke();
ellipseMode(CENTER);
// make a 30x30 circle
fill(255,100,100,200);
ellipse(mouseX,mouseY,30,30);
// make a 20x20 circle just behind it
fill(255,50,50,125);
ellipse((mouseX-pmouseX)/2+mouseX,(mouseY-pmouseY)/2+mouseY,20,20);
// make a 10x10 circle just behind it
fill(255,25,25,65);
ellipse((mouseX-pmouseX)/4+mouseX,(mouseY-pmouseY)/4+mouseY,10,10);
// make a 5x5 circle just behind it
fill(255,0,0,33);
ellipse((mouseX-pmouseX)/8+mouseX,(mouseY-pmouseY)/8+mouseY,5,5);
}
void mousePressed( ) {
background(mouseX,mouseY,mouseX);
}
frame rate may be too slow to see it when viewing online and too fast offline… but it’s happening.