Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
orophin.nhearama
orophin.nhearama's Profile
3
Posts
1
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
screen stays blanck on upload.
[0 Replies]
18-Mar-2013 06:10 AM
Forum:
Integration and Hardware
Hello there,
i tried to upload my program for my web site, so i enabled javascript mode on processing and exported my program.
but when i open the index file ony a blanc screen comes up...
i also added the images folder to my web export folder , thinking the images were the problem....
here's a link so you can accses my code.
http://www.openprocessing.org/sketch/93465
please take a look , i really need this on my web page.
inversion of ypos
[6 Replies]
02-Mar-2013 02:08 PM
Forum:
Programming Questions
Hello ,
i'm trying to make these buttons wich turn red when ever the mouse goes over them.
i wanted it to be possible to make as much buttons as needed , so i decided to try it whit a class and objects.
i did succeed in the making of the buttons but my colour code gets inverted.
i don't know what i did wrong, the recognision of the presence of the mouse in each rect is verry important for the future of this project.
I would be so verry gratefull if you could help me out,
here is my code:
Boutton B1 = new Boutton (5,5);
Boutton B2 = new Boutton (5,60);
boolean INSIDE;
void setup(){
int L = displayWidth-((displayWidth/100)*10);
int l = displayHeight-((displayHeight/100)*10);
size (L,l);
background (0);
}
void draw(){
B1.affi();
B1.ext();
B2.affi();
B2.ext();
}
class Boutton {
float ypos,xpos;
Boutton (float x , float y){
ypos = y;
xpos = x;
}
void affi(){
if (INSIDE == true) fill (255,0,0);
else fill(255);
rectMode(CORNER);
if( mouseX > xpos && mouseX < xpos+200 && mouseY > ypos && mouseY < ypos + 50 ){
INSIDE = true;
}
else{
INSIDE = false;
}
}
void ext(){
rect ( xpos ,ypos ,200,50);
}
}
+ 5 mouse click = lag.
[1 Reply]
04-Feb-2013 11:33 AM
Forum:
Programming Questions
Hello,
i have this lag when ever i get over 5 mouseclicks or a bit more, i don't know what to do about it, could someone have a quick look at this and tell me what i did wrong?
I would be so verry gratefull.
here is the link to my programm.
https://mega.co.nz/#!1Z9y1AJZ!MdGF7G-Hw67NdA41up0juBMyOFBHyCEBy1hhy8mJm3M
«Prev
Next »
Moderate user : orophin.nhearama
Forum