**Welcome **
My name is Luc(16) and last week I installed processing. the past week I have been making quite some stuff with processing already. I showed what I made to a couple of friends and asked me if I would be so kind to get the application running in wallpaper engine. processing is able to make .exe files as most of you may already know. however, when I try to open up the .exe file in wallpaper engine it just opens the application instead of setting it as background. Does anyone know some more about this?
In case this is not possible I would like to learn p5.js. wallpaper engine is able to load stuff from the internet and I have my own host for this. I just don’t know if what I made in processing will work in p5. Just in case here is my code(not that great XD) and a gif of what the application actually is.
//rain (main tab)
Population test;
void setup()
{
size(1280,720);
background(0);
test = new Population(500);
}
void draw()
{
background(0);
test.show();
test.move();
}
//Dot (class)
class Dot
{
float x = random(width);
float y = random(height);
float speedX = 4;
float speedY = 4;
float mass;
boolean calcmass = true;
float sidespeed;
float vertispeed;
int partTimer;
float dropx;
float myHeight;
void show(float size)
{
if (calcmass)
{
mass = size;
calcmass = false;
}
fill(random(255),random(255),255);
noStroke();
rect(x,y,2*mass,10*mass);
}
void move()
{
if (y > height)
{
dropx = x;
partTimer = 10;
y = -10;
x = random(width);
}
else if (y < -15)
{
y = height;
}
if (x > width+5)
{
x = -2;
}
else if (x <-5)
{
x = width;
}
sidespeed = mouseX - width/2;
x += sidespeed/120*mass;
vertispeed = mouseY - height/2;
y += vertispeed/60*mass;
if (partTimer > 0)
{
partTimer --;
for (int i = 0; i < random(5,10); i ++)
{
fill(random(255),255,random(255));
myHeight = random(10);
rect(dropx+random(-5,5),height-myHeight,random(2)/mass,myHeight);
}
}
print(partTimer);
}
}
//population (class)
class Population
{
Dot[] dots;
Population(int size)
{
dots = new Dot[size];
for(int i = 0; i < size; i ++)
{
dots[i] = new Dot();
}
}
void show()
{
for (int i = 0; i < dots.length; i++)
{
dots[i].show(random(2));
}
dots[0].show(random(2));
}
void move()
{
for (int i = 0; i < dots.length; i++)
{
dots[i].move();
}
dots[0].move();
}
}