FirstServed Tech Blog - FirstServed and the Art of Server Tuning

Why do flex skins sometimes look blurry?

The left panel is like it should be, the right panel looks awfull. All lines are blurry, shadows are buggy, etc.

This is caused by the panel having a x or y property a floating point value.

So when working with randoms, dragging operations, or any other calculations, always remember to round your values. This keeps your skins snappy :)

//panel.x = Math.random() * 10;
panel.x = Math.floor(Math.random()*10);

Great success!

Tags: , , , , , , ,

Leave a Reply

You must be logged in to post a comment.