Random color plugin for Illustrator

Randomize from a Color Range or Color Set in Adobe Illustrator

Dial in a range of colors to be randomly chosen from and applied to each object in your selection. Alternatively, add colors to a set and apply them randomly to your selection.


Randomize from a color range. Randomize the fill colors of all objects in your selection using an HSL (Hue, Saturation, Lightness) color range. Dial in the range by manipulating the handles on the color sliders or by manually typing in minimum and maximum values. Ranges can be independently set for hue, saturation, and lightness. For each object in your selection, a color is randomly generated from these HSL ranges, and then applied as an RGB color to the object. Fill color randomization is compatible with paths, compound paths, groups, and text.

Warning: If your document uses the CMYK color space, colors may appear faded due to the inherent imperfection in Illustrator’s RGB to CMYK color conversion engine.

Randomize from a color set. Sets are populated by importing fill colors from objects in the document, or by importing swatches from the swatches panel. Most color types can be imported into the set with the exceptions being gradient meshes and freeform gradients. Patterns are unable to be previewed in the panel, but will work as expected when applied to objects in the document. In the UI screenshot, you can see a pattern, empty fill, linear gradient, radiant gradient, grayscale color, spot color, and RGB color all added in to the set.

illustrator randomize color script

Color Range Interface Guide

1. Method Select

Selects whether the color randomization will be from a range or set of colors.

 

‘Color Range’ will generate a randomized color for each object selected in your document from a range.
‘Color Set’ will apply a random color from a set of colors to each object selected in your document.

2. Range Slider

Use the two handles on either end of this slider to dial in a range that random colors will be generated from. The blue bar between the handles indicates the range.

3. Sample Slider

This slider points to the middle of the current hue range and automatically stays centered in the range. It also determines the color of the saturation and lightness sliders. For example, in the screenshot, the slider is pointing at a cyan color, so the saturation and lightness sliders show cyan as their base color.

4. Manual Inputs

These text inputs correspond to the values of the slider directly below them. You can type in desired values here for more precise positioning of the slider handles. The hue inputs range from 0 to 360. The saturation and lightness inputs range from 0 to 100.

illustrator random color script

Color Set Interface Guide

1. Method Select

Selects whether the color randomization will be from a range or set of colors.

 

‘Color Range’ will generate a randomized color for each object selected in your document from a range.
‘Color Set’ will apply a random color from a set of colors to each object selected in your document.

2. Color Set

Selected objects fill color will be randomized by choosing colors from within this set. The set can be populated with colors, patterns, and almost any other type of color in Illustrator using the buttons below.

3. Color Preview

Each color imported into the set has a preview thumbnail showing that color. Patterns cannot have a preview generated for them, but will work as expected when applied to objects in the document.

4. Delete Color

Deletes the corresponding color from the set.

5. Add Fills

Imports fill colors from all currently selected objects in the document into the color set. Every type of color in illustrator can be imported into the set except for gradient meshes and freeform gradients. When importing colors from a group of objects, Randomill imports the fill color of each object within the group.

6. Add Swatches

Imports all selected swatches in the swatches panel to the color set.

7. Clear Colors

Deletes all colors from the color set.

See Randomill's random color illustrator script in action:


Randomize the colors (and other parameters) of these leaves to create an autumn leaves pattern quickly!