I try to find a more compact way for creating a custom 'pixel' font (because I need to process a whole alphabet this way).
When i select a character (
c='a') I want to loop the corresponding array with the
for loop. Now I have a seperate
rect for each character, because I don't know how to use the value of
c as the name of the array (so I can say
if value of c[i][j]{}).
I working on a simple program as a part of a sound-reactive installation. Every time the sound velocity is more than 5, a rectangle comes in on the right, and all other objects shift one place to the left.
The problem: the velocity is the width/height of the rectangles. Now it affects all objects, but I only want to assign the value to the newest, so all rectangles get their own size (and stay that size). Maybe there is something wrong with void show() and I tried things with an arraylist, but I'm afraid I'm a bit lost.
This is a simplified example to make it more clear, in the real version the rectangles are characters (kind of sound-reactive newsticker).
If anyone can point me in the right direction, that would be great :-)