genart.dev
Plugins

Color Adjust

Color correction layers — HSL adjustment, levels, and curves.

Color adjustment layers for post-processing color correction using HSL, levels, and curves.

Installation

npm install @genart-dev/plugin-color-adjust

Layer Types

Type IDDisplay NameDescription
adjust:hslHSL AdjustHue, saturation, and lightness adjustment
adjust:levelsLevelsInput/output levels with black/white point control
adjust:curvesCurvesTone curve adjustment with control points

Properties

adjust:hsl

PropertyTypeDefaultDescription
huenumber0Hue rotation in degrees (-180 to 180)
saturationnumber0Saturation adjustment (-100 to 100)
lightnessnumber0Lightness adjustment (-100 to 100)
colorizebooleanfalseColorize mode (apply single hue)

adjust:levels

PropertyTypeDefaultDescription
inputBlacknumber0Input black point (0-255)
inputWhitenumber255Input white point (0-255)
gammanumber1.0Midtone gamma (0.1-10)
outputBlacknumber0Output black point (0-255)
outputWhitenumber255Output white point (0-255)
channelselect"rgb"Channel: rgb, red, green, blue

adjust:curves

PropertyTypeDefaultDescription
pointsarray[[0,0],[255,255]]Control points as [input, output] pairs
channelselect"rgb"Channel: rgb, red, green, blue
interpolationselect"smooth"Interpolation: smooth, linear

MCP Tools

ToolDescription
design_adjust_hslAdd or configure an HSL adjustment layer
design_adjust_levelsAdd or configure a levels adjustment layer
design_adjust_curvesAdd or configure a curves adjustment layer

Example

{
  "tool": "design_add_layer",
  "arguments": {
    "type": "adjust:hsl",
    "properties": {
      "hue": 15,
      "saturation": 20,
      "lightness": -5,
      "colorize": false
    }
  }
}