Glimmr Canvas-Based Drawing

version 2/101030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Window-framing adjustment

    Window-framing adjustment of something is an activity.

    Last for window-framing adjustment of a graphics g-window (called the window) when the origin of the window is not {0, 0} (this is the default window-framing adjustment rule):
            let xx be entry 1 of the origin of the window real times the scaling factor of the window as an integer;
            let yy be entry 2 of the origin of the window real times the scaling factor of the window as an integer;
            now the x-offset of the window is (0 - xx) + x-offset of the window;
            now the y-offset of the window is (0 - yy) + y-offset of the window;
            #if utilizing Glimmr debugging;
            say "[>console][CBD]Offsets of [i][window][/i] adjusted using non-zero origin ([xx], [yy]): x offset set at [x-offset of the window]; y offset set at [y-offset of the window].[<]";
            #end if.