Glimmr Canvas-Based Drawing
version 2/101030 by Erik Temple
Section - Element scaling rules
The element scaling rules are an object-based rulebook.
The element scaling rules have outcomes exit (success) and continue (no outcome - the default).
An element scaling rule for a g-element (called the current-element) (this is the element origin scaling rule):
let x-temp be entry 1 of the origin of the current-element scaled by the scaling factor of the current window;
let y-temp be entry 2 of the origin of the current-element scaled by the scaling factor of the current window;
now the win-x of current-element is x-temp real plus the x-offset of the current window as an integer;
now the win-y of current-element is y-temp real plus the y-offset of the current window as an integer;
The element origin scaling rule is listed first in the element scaling rules.