pixelSetColor method

bool pixelSetColor(
  1. String color
)

PixelSetColor() sets the color of the pixel wand with a string (e.g. "blue", "#0000ff", "rgb(0,0,255)", "cmyk(100,100,100,10)", etc.).

Implementation

bool pixelSetColor(String color) => using(
      (Arena arena) => _magickWandBindings.PixelSetColor(
        _wandPtr,
        color.toNativeUtf8(allocator: arena).cast(),
      ),
    ).toBool();