GraphicContext constructor

GraphicContext({
  1. Position? position,
  2. PColor? color,
  3. PColor? backgroundColor,
  4. num? scaleX,
  5. num? scaleY,
})

Implementation

GraphicContext(
    {Position? position,
    PColor? color,
    PColor? backgroundColor,
    num? scaleX,
    num? scaleY})
    : position = position ?? Point.pZero,
      color = color ?? PColor.colorBlack,
      backgroundColor = backgroundColor ?? PColor.colorBlack,
      scaleX = scaleX ?? 1,
      scaleY = scaleY ?? 1;