withOpponentA method

RayOklab withOpponentA(
  1. double opponentA
)

Creates a new RayOklab with a different green-red opponent axis value.

Negative values tend toward green, positive values toward red. The lightness, blue-yellow axis, and opacity remain unchanged.

Implementation

RayOklab withOpponentA(double opponentA) {
  return RayOklab._(l: _l, a: opponentA, b: _b, opacity: opacity);
}