scalar property

Scalar scalar
final

A final multiplier to scale the gradient translation, independently configurable for either Scalar.horizontal or Scalar.vertical axis. The default is Scalar.identity which makes no impact.

These values apply in addition to any accelerometer sensor data already affecting a Foil's gradient as well as the current animation value between min and max.

In addition to Scalar({horizontal, vertical}),
a named const Scalar.xy(double x, [double y]) constructor is available.

Implementation

final Scalar scalar;