computeTransformation abstract method

TransformationData? computeTransformation(
  1. Particle particle,
  2. Image defaultShapes
)

Computes the transformation parameters for rendering particles using this shape.

The method returns a tuple containing an ui.Image, a Rect, an RSTransform, and a Color. These parameters are used by the canvas to draw the particle in the desired shape and orientation.

  • particle: The Particle instance containing properties such as size and position.
  • defaultShapes: The ui.Image representing default shape textures.

Returns a tuple (Image, Rect, RSTransform, Color) with the computed parameters.

Implementation

TransformationData? computeTransformation(
  Particle particle,
  ui.Image defaultShapes,
);