You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's nice to have every layer that draws graphics to draw at the origin at a standard size so that they can easily be moved/attached to other locations or objects. In order to capture transformations of this kind and make them easy to carry around and swap out, we could have a graphics-transform adapter. It would:
Pass through all callbacks except draw
Accept a function that will perform the transform
When drawing, it
Pushes the current transform on the stack
Calls the passed function to perform the transform
Passes through the callback to the nested layer
Pops the transform stack
It should perform error checking around the provided functions to ensure that the transform stack doesn't grow unbounded
The text was updated successfully, but these errors were encountered:
It's nice to have every layer that draws graphics to draw at the origin at a standard size so that they can easily be moved/attached to other locations or objects. In order to capture transformations of this kind and make them easy to carry around and swap out, we could have a
graphics-transform
adapter. It would:The text was updated successfully, but these errors were encountered: