Keeping x-y coordinates consistent between renders

If you're having trouble using Context Free or don't understand the language, ask for help here.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
hdonkx
Posts: 4
Joined: Thu Aug 08, 2019 5:48 pm

Keeping x-y coordinates consistent between renders

Post by hdonkx »

Hi, sorry if this is frequently asked but - I'm trying to figure out how to get multiple renders to "line up" if some of the elements in the design are semi-random, since this seems to make ContextFree re-align and/or rescale the image to fit each time. Is there any way to render with a fixed resolution and lock it so that, for example, pixel 100,100 is always coordinate 1,1, even if some things spill over the edge? I thought maybe the border size setting was supposed to do this but it doesn't seem to help. Thanks for any help!

User avatar
MtnViewJohn
Site Admin
Posts: 882
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Re: Keeping x-y coordinates consistent between renders

Post by MtnViewJohn »

Automatic sizing can be bypassed if you set an explicit size using the CF::Size configuration variable:

Code: Select all

CF::Size = [s 30 20]    // Fixed canvas 30 units wide and 20 units tall
You can move your design around in this fixed window:

Code: Select all

CF::Size = [s 30 20 x 5 y 3]    // Fixed canvas 30 units wide and 20 units tall
                                // shifted right 5 and up 3

Post Reply