In my program, after a number of mouse clicks I cannot see the object on the sketch and there will be this message:
“Heap full” and “stack empty on pop attempt”
Does anyone have any idea what is this problem and how to fix it?
Hi
I get this error message when I run my program:
ArrayIndexOutOfBoundsException: 400
400 is because of my array size.
Is there any suggestion how to fix this error?
Thanks in advance,
Hi
I’d like to create some menus like open file" or "export file" and etc, for my application. Can you give me a head starts? From where I can find information about how to do this?
Hi
When I run a program there would be this error message:
(The package ‘net’ does not exist. You might be missing a library.)
Is there any package named ‘net ’ that I should put in the library? If there is can you give me the link of the newest version?
Thanks in advance,
How can I add a link so that when the mouse pressed on specific coordinate (in case there is a connection to internet) it leads to the webpage?
Hi,
Is there a way to display a long line of text in more than one line? Like using (\n)
String A = “University of Greenwich (Greenwich Campus),Old Royal Naval College, Park Row, London SE10 9LS, 0844 576 6085”;
Instead of displaying like this:
University of Greenwich (Greenwich Campus),Old Royal Naval College, Park Row, London SE10 9LS, 0844 576 6085
Display like this:
University of Greenwich (Greenwich Campus),
Royal Naval College, Park Row, London SE10 9LS,
0844 576 6085
Hi
I know I know it is very easy and not a big deal but sometimes I feel my brain is locked!
In the following simple code I want to do something that, until the mouse does not press again on the other rect , the text display.
Red rect shows an image with word “Hi”. ( “Hi stays put until the mouse pressed on the blue rect”)
Blue rect shows an image with word “Bye”.(“Bye stays put until the mouse pressed on the blue rect”)
Please name the images in the data folder as (“00” and “01”)
Hi,
The size of my sketch in void setup() is
size(1100,700,P3D);
I want to do something to make just for example the coordinate (100,100, 200,400) P3D.
In another word, I don’t want all my sketch be P3D.
(Imagine a sketch that half of it is simple and just showing some simple text and the other half is showing a 3D animation.)
Is there such a thing and can I do that?
I hope could make my question clear.
Hi,
Why I’m getting this error message when I add another PImage.
“OutOfMemoryError: you may need to increase the memory setting in preference”
I added a few images by using array
int numFrames=50;
PImage[] images=new PImage[numFrames];
I had to use another PImage(s) but when I load them in void setup() I get this error message!
Please tell me if you need more details.
Hi guys,
I have the following code from Sadowski
I read from somewhere that the following source code just inverts the hue, but the saturation and brightness unchanged!!
float s = saturation(invert.pixels[i]);
Hi guys,
How could we reduce the size of an image by a linear factor of eight? (i.e. 3072 * 2304 to 384*288)
One way to do that is by considering 8*8 square blocks of pixels, and preserving only the upper left pixel from each block.
Can you tell me what does that mean and give me example and web pages?
Thanks in advance
Hi
What can I do in “void keyReleased()” which instead of writing all these lines of code:
rect(50,278,24,31);
rect(74,278,24,31);
rect(98,278,24,31);
Just write a brief code. Like using for loop or while or I don’t know function maybe!
thanks
How can I convert it to exe format?
Hi
Can we do something with array to make it work faster?
I have an array with 8 elements.
I can call each of these elements separately by key pressing.
I want to make this program react very fast when a key is pressed and the sound can be heard as soon as a key pressed. How can I do it?
I don’t want to write lots of arrays and separate the original array!
Hi,
I want to create music in processing (using ratio between fundamental frequencies (Do Re Me Fa Sol La Si)) like “HAPPY BIRTHDAY TO YOU”. I want my music to have rhythm.
I don’t what to load music in processing; I want to create the music myself.
Can anyone give me a simple example to show me how I can do this?
Thanks in advance,
Hi
Can anyone give me a site Address explains about”3D”?
thanks
How could we write a program of three-color totalistic one-dimensional Cellular Automata (CA).
It is like the game of life program.
I know how to write two-color one-dimensional.
It is really funny, and changing the rules make pretty pattern.
Is there anyone to have any idea how to do this?
I put the code of two-color one-dimensional below.
Any idea will help.
Is it possible to change pixel’s size of the sketch? For example increase it! If yes how?
Thanks
I know how to program the two-color one-dimensional Cellular Automata. I put the code of the two-color below.
Can anyone help me to write a program that implements three-color totalistic one-dimensional CA?
Thanks
The code of the two-color is:
int y;
int rule=129;
void setup()
{
size(256,256,P3D);
background(0);
set(width/2,0,~0);
}
void draw()
{
for(int x=1; x<width-1; x++)
{
int pix1= (get(x-1,y)&1)<<2;
int pix2= (get(x,y)&1)<<1;
int pix3= get(x+1,y)&1;
int bits=pix1+pix2+pix3;
if((rule&(1<<(bits)))>0) //test pattern in rule
set(x,y+1,~0);
}
if(++y>height)
exit();
}