Skip to content

Latest commit

 

History

History
executable file
·
187 lines (123 loc) · 13.4 KB

Color.md

File metadata and controls

executable file
·
187 lines (123 loc) · 13.4 KB

header

Color | Adobe Illustrator Scripts

Downloads Telegram Yotube

Back to homepage

How to download one script

  1. In the script description, click the "Direct Link" button.
  2. The tab will open the script code.
  3. Press Cmd/Ctrl + S for download.

Scripts

AverageColors

Direct Download

Averages the colors of selected objects or separately inside groups or gradients. The script skips objects without color or with a pattern. If nothing is selected, the script process all groups in the document. It has two modes: silent and dialog. Changing in CFG.showUI.

Modes change without editing the code if you hold down the Alt key when running the script:

  • Alt + CFG.showUI: false the dialog will be shown
  • Alt + CFG.showUI: true silent mode with the latest options

AverageColors

ColorBlindSimulator

Direct Download

Simulates color vision deficiency of 8 types. You can recolor objects or use only a preview. Adobe is limited to viewing two types in the View > Proof Setup menu and cannot apply colors. The script supports: paths, compound paths, text, fills and strokes. You can change the gamma correction in CFG.gamma: 2.2 and activate the default preview CFG.defPreview: true.

Warning
Unfortunately, the copied gradients are one swatch in the Illustrator. Manually break the link by changing the gradient twice with the Reverse Gradient button. Vote on Uservoice to fix this.

ColorBlindSimulator

ColorGroupReplacer

Direct Download

Replaces the values of spot colours in one colour group with spot colours from another group by matching swatch names or by order. In the example, the Default group is replaced. If a color in the target group has the name Accent, the script will look for swatches with a name that contains the name of the target color. You don't need to create palettes with semantic names, just arrange the colors within the groups in the desired order and select the By swatches order option.

ColorGroupReplacer

ContrastChecker

Direct Download

Helps select color combinations for text and backgrounds, icons and other interface elements, and diagrams by checking the contrast of color pairs for WCAG 2.1 compliance. The auto-correct ratio is set in the script code in the CFG.defRatio: 4.5 variable.

  • body, subtext (17 pt / 23 px regular) — 4,5:1 and above;
  • large text, headers (18 pt / 24 px regular or 14 pt / 19 px bold) — 3:1;
  • for non-text content (icons and actionable graphics) — 3:1, because they don't need to be read.

Warning
Remember that contrast can vary depending on your monitor, device, environmental conditions, typefaces, and many other details. Using common sense can be more helpful than mindlessly following a rule. Read more

ContrastChecker

ConvertToGradient

Direct Download

Convert a flat process color into a matching gradient.
What's new: The script now works with the RGB and CMYK document profile, Spot & Gray colors. Processes compound paths and groups of items.
Based on original script by Saurabh Sharma, 2010.

ConvertToGradient

CycleColors

Direct Download

Swaps the fill and stroke colors of the selected objects in order they have in the Layers panel. Preserves the weight of the strokes, but if an object has no stroke, the script copies one from another object. If your selected objects are in non-consecutive order, you may think that the Forward and Backward buttons move colors randomly. The Reset button doesn't return custom brushes and dash settings applied to strokes, but you You can use the native command Undo after closing the dialog box.

The script by default remembers the position of the dialog window on the screen, to make it open centered, replace CFG.isResWinPos: true with false in the code.

CycleColors

CycleGradient

Direct Download

  • CycleGradient.jsx (UI version)
  • CycleGradientBackward.jsx
  • CycleGradientForward.jsx
  • CycleGradientRandom.jsx

A set of 4 scripts that change the color order of gradient stops. The position of the stops and opacity don't change.

Warning
Unfortunately, the copied gradients are one swatch in the Illustrator. Manually break the link by changing the gradient twice with the Reverse Gradient button. Vote on Uservoice to fix this.

CycleGradient

MatchColors

Direct Download

Matches two groups of objects (paths, texts) or text objecs characters by fill color. Colors are defined on paths, compound paths, or text. Other objects in groups are skipped.

Warning
Scripts cannot copy/paste gradient angle and length properties. For this reason, only the gradient color is copied without its properties. Vote on Uservoice to fix this.

MatchColors

DistributeGradientStops

Direct Download

Distributes uniform spacing between all the gradients stops without changing the position of the outermost stops.

Warning
Unfortunately, the copied gradients are one swatch in the Illustrator. Manually break the link by changing the gradient twice with the Reverse Gradient button. Vote on Uservoice to fix this.

DistributeGradientStops

RemoveGradientStops

Direct Download

Removes intermediate color stops of gradient fill and stroke for selected objects.

Warning
Unfortunately, the copied gradients are one swatch in the Illustrator. Manually break the link by changing the gradient twice with the Reverse Gradient button. Vote on Uservoice to fix this.

RemoveGradientStops

ReverseGradientColor

Direct Download

Reverse the order of gradient colors and their opacity. Does not reverse the locations of color stops.

Warning
Unfortunately, the copied gradients are one swatch in the Illustrator. Manually break the link by changing the gradient twice with the Reverse Gradient button. Vote on Uservoice to fix this.

ReverseGradient

StrokeColorFromFill

Direct Download

Setting the Stroke color of object based on an his solid or gradient fill. The option to automatically add an stroke is not available for Mac OS users with an Illustrator older than CC 2020.

StrokeColorFromFill

Donate

Many scripts are free to download thanks to user support. Help me to develop new scripts and update existing ones by supporting my work with any amount via Buymeacoffee, Tinkoff, ЮMoney, Donatty, DonatePay. Thank you.

🤝 Contribute

Found a bug? Please submit a new issues on GitHub.

✉️ Contact

Email [email protected]
Telegram @sergosokin

📝 License

All scripts is licensed under the MIT licence.
See the included LICENSE file for more details.