Hi,
I am getting this error message:
The code of constructor (my name of the processing sketch) is exceeding the 65535 bytes limit.
I wondered if this is to do with the length of arrays of x and y co-ordinates that I am passing into certain constructors?
How would I pass it in using an XML file? And would this help?
An example of the code used is:
Here is an example array of x and y values for the letter L:
Code:float[] xposL = {40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 45, 50, 50, 55, 55, 60, 60, 65, 40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 45, 50, 50, 55, 55, 60, 60, 65, 40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 45, 50, 55, 60, 60, 40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 45, 50, 55, 60, 60, 40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40};
float[] yposL = {40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140,140, 140, 140,140,140,140,140,140, 40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140,140, 140, 140,140,140,140,140,140, 40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140,140, 140, 140, 140, 140, 40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140,140, 140, 140, 140, 140, 40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140, 40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140, 40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140,40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140};
And here is the constructor that uses it:
Code: attractorL = new AttractorL[NUM_ATTRACTORS_L];
for (int i = 0; i < attractorL.length; i++)
{
attractorL[i] = new AttractorL(xposL[i],yposL[i]);
}
particleL = new ParticleL[r];
for (int i = 0; i < particleL.length; i++)
{
particleL[i] = new ParticleL(xposL[i],yposL[i], r);
}
Thanks