scaling a gui?

Started by
12 comments, last by dwahler 15 years, 10 months ago
Quote:Original post by Kylotan
Don't use gradients where you'll be stretching things. Use textures you can tile instead.
But how would i scale along the Y-axis as that causes stretching?

Quote:Original post by Dave
You can gradient along any axis that is not stretched.

Wow, i should have tried before i posted.


Would creating a larger version of the gradient and scaling down help?
Advertisement
It won't help really. You'll suffer from the same problems of either losing colours or badly filtered blending.
OK, Thanks again.

Back to work...
Vector graphics doesn't have to be hard -- there are libraries like the excellent Cairo that take care of the messy rendering details for you. You could even keep your current sprite-based system as is, and just re-render the sprites textures at the new resolution whenever the GUI is rescaled.

This topic is closed to new replies.

Advertisement