hi there, people…!
I have been mixing lots of codes and learned a lot. Need to get more into the real codes, but its for another topic/time.
I made this, and somethings is happenig, wich i have no ideia wy and how to fix it.
1- the big rect flash/blink got slower. Do not respond to the code as it does on others sketchs;
2 - the Blur. I try to add it only on the text “Techno” and the image “ET”;
3 - in the ET head has a dot when you pass the mouse in it, it appears. It has a link to some webpage. I dont no why the link do not go together when i tranfer to p5.js.
Here is my link https://vrtxart.github.io/p5-tutorial/ ;
4 - i want to add a image that cover all of it with a circle “cutout” to show whats under the image. will send a exemple;
And here is the processing source code;
PImage et;
boolean overButton = false;
boolean backwards=false;
int timeLapse=400;
int timeTrack;
PShader blur;
void setup() {
size(600, 600);
et = loadImage("et.png"); // Load the image into the program
filter(BLUR, 6);
}
void draw() {
background(0); // total canva black
// rect flahing/blinking
int m = millis();
fill(m % 200); // velocity of flashs ** not working good ** maybe my computer..
rect(25, 25, 555, 555, 30);
image(et, 0, 0 );
textSize(128);
fill(0, 408, 612, 816);
//text
text("Techno", 100, 150, -120);
filter(BLUR, 6);
//button link to web page
if (overButton == true) {
noStroke();
fill(74, 245, 243, 70);
} else {
noStroke();
noFill();
}
circle(267, 290, 30);
}
void mousePressed() {
if (overButton) {
link("https://web.facebook.com/groups/378940129825776");
}
}
void mouseMoved() {
checkButtons();
}
void mouseDragged() {
checkButtons();
}
void checkButtons() {
if (mouseX > 200 && mouseX < 500 && mouseY > 200 && mouseY <300) {
overButton = true;
} else {
overButton = false;
}
}
and here is my github;
https://github.com/VrtXArt/p5-tutorial.git
I saw an example in another topic and then I applied what I’ve been learning. Here is the link;
the circle that show what’s underneath
The image that i will add on top of everything any, but here ir goes one;
thank you