2d.strokeStyle.relativecolor

Relative color works as color input