pixelGetHSL method

PixelGetHSLResult pixelGetHSL()

PixelGetHSL() returns the normalized HSL color of the pixel wand.

Implementation

PixelGetHSLResult pixelGetHSL() => using(
      (Arena arena) {
        final Pointer<Double> huePtr = arena();
        final Pointer<Double> saturationPtr = arena();
        final Pointer<Double> lightnessPtr = arena();
        _magickWandBindings.PixelGetHSL(
          _wandPtr,
          huePtr,
          saturationPtr,
          lightnessPtr,
        );
        return PixelGetHSLResult(
          huePtr.value,
          saturationPtr.value,
          lightnessPtr.value,
        );
      },
    );