0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

Generate → Color

AI-generated

Overview

This node operation generates colors based on specified parameters such as hue, luminosity, count, seed, format, and alpha. It is useful for scenarios where you need to create one or multiple colors programmatically, for example, generating color palettes for design projects, creating random colors for data visualization, or producing colors for UI themes.

Use Case Examples

  1. Generate a single bright red color in hex format.
  2. Create a palette of 5 colors with a specific hue and luminosity.
  3. Generate a semi-transparent color with a given alpha value.

Properties

Name Meaning
Code Variables Allows defining code variables that can be used within the color generation logic, specifying variable names or IDs and their values.
Hue Hue of the color to generate.
Luminosity Luminosity of the color, such as light, bright, or dark.
Count Number of colors to generate.
Seed Seed value to influence the color generation for reproducibility.
Format Format of the color output, e.g., rgb, rgba, hsl, hsla, or hex.
Alpha Alpha (transparency) value of the color.

Output

JSON

  • hue - Hue of the generated color.
  • luminosity - Luminosity of the generated color.
  • count - Number of colors generated.
  • seed - Seed used for color generation.
  • format - Format of the generated color.
  • alpha - Alpha (transparency) of the generated color.
  • color - The generated color value(s) in the specified format.

Dependencies

  • An API key credential for the codeKit API is required to authenticate requests.

Troubleshooting

  • Ensure all required parameters are correctly set, especially the format and count.
  • If the API returns errors, verify the API key credential and network connectivity.
  • Invalid values for hue, luminosity, or format may cause the generation to fail; use valid options as described in the node's property descriptions.

Discussion