done renaming

This commit is contained in:
2023-09-25 18:56:08 +02:00
parent 5870c6ba9c
commit 9a3380dee1
33 changed files with 554 additions and 31 deletions

View File

@@ -0,0 +1,23 @@
void setup()
{
size(800, 600);
frameRate(60);
}
float second;
float offset = 0;
void draw()
{
background(40, 40, 40, 256);
//fill(0,0,0,1);
second = constrain(((float) frameCount / (float) frameRate) - offset, 0 , 1000);
if(mousePressed == true)
{
offset = second + offset ;
}
println(offset + " " + mousePressed);
textSize(50);
text(second, width / 2 -50, height/2);
}