simvx.graphics.draw2d_transform

2D affine transform stack for Draw2D.

Provides push/pop transform composition used by all drawing primitives to support rotated, scaled, and translated coordinate spaces.

Module Contents

Classes

Draw2DTransformMixin

Mixin providing a 2D affine transform stack for Draw2D.

API

class simvx.graphics.draw2d_transform.Draw2DTransformMixin[source]

Mixin providing a 2D affine transform stack for Draw2D.

classmethod push_transform(a, b, c, d, tx, ty)[source]

Push a 2D affine transform, composing with current.

classmethod pop_transform()[source]

Pop the last transform, restoring the previous one.

classmethod push_identity()[source]

Push current transform and reset to identity (for screen-space drawing).