Hello all,
I'm currently struggling to think my way through a problem and was hoping for some suggestions. I have a project working with typography and want to use a few different algorithms to simulate simple effects that build text using for example particles, or kind of biologically growing text.
I was just wanting some opinions and how to get the text position/data without drawing it to screen, so this data can be used to manipulate different objects.
Currently i've tried drawing nearly invisible text and used get(x,y) to distinguish between background and the type. This has worked well for some things and seems really slow when i have a lot of objects i guess this is because drawing an image and looping through all the pixels is very costly.
My only other idea was to use an offscreen buffer to draw the image then perhaps loop through the image and stash all the pixel data in an array.
I hope someone with a little more experience has a far more elegant solution that they could share. I feel like there is a simpler way of achieving this that i can't see.
Thanks in advance,
Shaun.
1