Hello community,
In my sketch there are some objects, which can be moved forward and backwards.
There are alltogether 94 objects. I limited them, so there are only 20 objects shown on the screen. If you scroll forward, new ones fade in, old ones fade out.
I want them to get brighter, depending on how near they are to the viewer/screen.
The program looks like this:

Does anyone have an idea how to do this?
1