Skip to content
iAndyHD3 edited this page May 19, 2024 · 2 revisions

REMOVED IN 2.0! Might be added in a later update

COLOR_CHANNEL Action

The COLOR_CHANNEL action contains the following information:

  • The type of action (COLOR_CHANNEL)
  • The color channels arrray

Required keys

  • color channel id (id)
  • rgb array (rgb) or robtop format color channel (string)

Optional keys

  • blending (bool)
  • opacity (float)
  • p1 (bool)
  • p2 (bool)

Example

{
  "action": "COLOR_CHANNEL",
  "channels": [
    {
      "id": 1,
      "rgb": [
        0,
        0,
        255
      ],
      "opacity": 0.5,
      "p2": true
    },
    {
      "id": 2,
      "rgb": [
        0,
        255,
        0
      ],
      "opacity": 0.5,
      "p2": true
    }
  ]
}

HSV/copy color is currently not supported through the human readable api, use the string key instead HSV example with string

{
  "action": "COLOR_CHANNEL",
  "channels": [
    {
      "id": 1,
      "string": "1_255_2_255_3_255_11_255_12_255_13_255_4_-1_6_14_7_1_15_1_9_1000_10_0a1.16a1.26a0a0_18_0_8_1"
    },
    {
      "id": 2,
      "string": "1_255_2_255_3_255_11_255_12_255_13_255_4_-1_6_14_7_1_15_1_9_1000_10_0a1.16a1.26a0a0_18_0_8_1"
    },
    {
      "id": 3,
      "string": "1_255_2_255_3_255_11_255_12_255_13_255_4_-1_6_14_7_1_15_1_9_1000_10_0a1.16a1.26a0a0_18_0_8_1"
    }
  ]
}

You can learn about color objet string in gd docs or by looking at a decoded level string

Clone this wiki locally