alpha property

double alpha

Returns the alpha (transparency) value of this object.

Implementation

double get alpha {
  return $alpha;
}
void alpha=(double value)

Sets the alpha (transparency) value of this object. The value parameter must be a value between 0.0 and 1.0. If the new value is the same as the current one, the method returns immediately. The method also marks the object as requiring redraw.

Implementation

set alpha(double value) {
  if ($alpha != value) {
    // value ??= 1;
    $alpha = value.clamp(0.0, 1.0);
    requiresRedraw();
  }
}