Hi everyone,
I am creating a level meter for audio samples that rises and falls based on the loudness of the audio track. I have developed it fully for a vertical layout, and I would like to create an option (such as a user pressing a keyboard key) that transforms my gui into a horizontal gui, in which the level rises and falls across the x axis instead.
What is the most modular way to create code that does this. I know it is possible to set the rectangles rotation and position in the window, but if I went on to add a range of other shapes this isn't a great approach as it would involve me having to modify all of their properties. I was thinking there must be a cleaner way?
Generally I would try to create everything on top of a pane of sorts, which when rotated would rotate all of its members. I have looked through the API and not found a solution such as this though.
Any suggestions are welcomed.
Thanks,
Mark.