Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
guillemorenomirallas
guillemorenomirallas's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
How to make an image disappear with a mouse move
[3 Replies]
29-May-2013 03:50 AM
Forum:
Programming Questions
HI!!!!
We are very "amateur" in Processing stuff and we are trying to design I simple behavior:
We need to make and jpeg image desapear and apear with the mouse movement.
Do you know the code we must use?
This is what we have right now:
int a;
PImage img1;
PImage img2;
void setup()
{
size(900,600,P3D); // or however big you need.
img1=loadImage("554037_446371552108299_1763329318_n.jpg");
img2=loadImage("calma.jpg");
a=0;
}
void draw()
{
background(0);
noTint();
image(img1,0,0);
tint(255,255,255,a);
image(img2,0,0);
if(a<255)
a++;
}
we are waiting for your answer!!!!
Thanks a lot!!
«Prev
Next »
Moderate user : guillemorenomirallas
Forum