Actions114
- AI Actions
- AI Advanced OCR
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Enitity Detection
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate Javascript Code
- Generate Python Code
- Language Detection
- Mood Detection
- PDF OCR
- Picture Object Recognition
- Picture Text Recognition
- Redact Sensitive Information From PDF
- Too Long To Read
- Transcribe
- Translation
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Date & Time Actions
- Generate Actions
- Image Actions
- Operator Actions
- PDF Actions
- Storage Actions
- Text Actions
- User Actions
Generate → Color
AI-generatedOverview
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
- Generate a single bright red color in hex format.
- Create a palette of 5 colors with a specific hue and luminosity.
- 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.