uiColor property

Color uiColor

Implementation

Color get uiColor {
  Float32List c = displayColor;
  double o = (artboard.modulateOpacity * opacity * shape.renderOpacity)
      .clamp(0.0, 1.0)
      .toDouble();
  return Color.fromRGBO((c[0] * 255.0).round(), (c[1] * 255.0).round(),
      (c[2] * 255.0).round(), c[3] * o);
}
void uiColor=(Color c)

Implementation

set uiColor(Color c) {
  color = Float32List.fromList(
      [c.red / 255, c.green / 255, c.blue / 255, c.opacity]);
}