color property

Color color

The color to use when stroking or filling a shape.

Defaults to opaque black.

See also:

This color is not used when compositing. To colorize a layer, use colorFilter.

Implementation

Color get color {
  final int encoded = _data.getInt32(_kColorOffset, _kFakeHostEndian);
  return Color(encoded ^ _kColorDefault);
}
void color=(Color value)

Implementation

set color(Color value) {
  final int encoded = value.value ^ _kColorDefault;
  _data.setInt32(_kColorOffset, encoded, _kFakeHostEndian);
}