resize issue

jersmi's picture

Regarding this analog clock patch, when I drag the viewer to resize i can't figure out how to resize the clock to always fit the circle/window. it's a small problem-- might just be math related to aspect ratio, so when AR = 1, billboard width = a, and when AR = 2, billboard width = b-- i can't get it. also, i post because maybe there's advice on a better way in general...

clock2.qtz18.93 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

cwright's picture
Re: resize issue

All your coordinates are based on width, but the background circle is based on height. To remedy this, just base all your offsets on the renderer destination dimension's height value, like this:

ClockDestinationDimensions.png261.55 KB