RGB Color Randomizer
Script for Adobe Illustrator
✦ Available exclusively on Patreon for Pro supporters.
ㅤ
Description
The RGB Color Randomizer is a powerful Adobe Illustrator script that allows you to apply random colors to selected objects with precise control over the color ranges. Instead of getting completely random colors, you can define specific ranges for Red, Green, and Blue channels to create harmonious color schemes or target specific color palettes.
ㅤ
Key Features
- Precise Color Control: Set minimum and maximum values for each RGB channel.
- Live Preview: See color changes in real-time as you adjust settings.
- Selective Randomization: Choose to randomize fill colors, stroke colors, or both.
- Smart Object Handling: Works with paths, compound paths, text frames and grouped objects.
- User-Friendly: Intuitive interface with sliders, text inputs, and helpful tooltips. Easy cancellation and restoration of original colors.
ㅤ
Installation
1. Download the RGB Color Randomizer.jsx script file.
2. Place the script in your Adobe Illustrator Scripts folder:
⮑ Mac: /Applications/Adobe Illustrator <Version>/Presets/<Language>/Scripts
⮑ Windows: C:\Program Files\Adobe\Adobe Illustrator <Version>\Presets\<Language>\Scripts
3. Restart Adobe Illustrator if it's already running.
ㅤ
Using the Script
- Open Adobe Illustrator and create or open a document.
- Select the objects you want to randomize colors for.
- Run the script by going to File > Scripts and selecting the RGB Color Randomizer.
- The script opens a dialog window with several sections:
ㅤ

ㅤ
➊ Color Range Controls
ㅤ
- Red Range Panel: Controls the red channel.
- Green Range Panel: Controls the green channel.
- Blue Range Panel: Controls the blue channel.
ㅤ
Each panel contains:
- Min/Max Labels: Click to instantly reset to 0 (min) or 255 (max).
- Sliders: Drag to adjust values visually.
- Text Fields: Type exact values or use arrow keys to increment/decrement.
ㅤ







ㅤ
ㅤ
➋ Additional Options
ㅤ
- Randomize Fill Color: Enable/disable randomization of object fill colors.
- Randomize Stroke Color: Enable/disable randomization of object stroke colors.
- Hide/Show Edges: Toggle visibility of object outlines while working.
ㅤ
⚠︎ Enable at least one of the randomization options in the Options panel.
ㅤ
ㅤ
➌ Preview and Controls
ㅤ
- Preview Checkbox: Enable real-time color updates as you adjust settings.
- Randomize Button ✚: Apply new random colors using current ranges.
- Cancel Button: Exit without applying changes and restore original colors.
- OK Button: Apply final settings and close dialog.
- User Guide Button ⏼: Access the complete user guide and version info.
ㅤ
ㅤ
☻ Best Practices
ㅤ
- Save Your Work: Always save before running scripts on important documents.
- Ensure you have selected at least one object before running the script.
- Start with Preview: Enable preview mode to see immediate results.
- Test on Copies: Try the script on duplicate objects first for complex artwork.
- For large selections, consider disabling preview mode for better performance.
- Use the Hide/Show Edges option to better see color changes.
ㅤ
The script is particularly useful for designers who want controlled randomization rather than completely chaotic colors.
You can create cohesive color schemes by constraining the RGB ranges to specific palettes (warm colors, cool colors, pastels, etc.).
ㅤ
ㅤ