Copyright © Fred Weinhaus My scripts are available free of charge for non-commercial (non-profit) use, ONLY. For use of my scripts in commercial (for-profit) environments or non-free applications, please contact me (Fred Weinhaus) for licensing arrangements. My email address is fmw at alink dot net. If you: 1) redistribute, 2) incorporate any of these scripts into other free applications or 3) reprogram them in another scripting language, then you must contact me for permission, especially if the result might be used in a commercial or for-profit environment. Usage, whether stated or not in the script, is restricted to the above licensing arrangements. It is also subject, in a subordinate manner, to the ImageMagick license, which can be found at: http://www.imagemagick.org/script/license.php Please read the Pointers For Use on my home page to properly install and customize my scripts. |
Randomly modifies the color of rectangular cells of an image |
last modified: December 15, 2018
USAGE: colorcells [-n numcells ] [-c cellsize] [-p percent] [-s seeds] [-t thickness] [-d diameters] infile outfile
-n ... numcells .... number of cells in width and height; comma separated pair of PURPOSE: Randomly modifies the color of rectangular cells of an image. DESCRIPTION: COLORCELLS randomly modifies the color of rectangular cells of an image. The cells may be masked by an ellipse so that the outside of the affected cells are white. Only some percentage of the cells will be modified in color. ARGUMENTS: -n numcells ... NUMCELLS is the number of cells in width and height. Values are comma separated pair of positive integers. The default="8x8". This option is used if no cellsize are provided. -c cellsize ... CELLSIZE is the dimensions of the cells expressed as an "x" separated pair of positive integers (WxH). The default is to use numcells. This option takes precedent over numcells. -p percent ... PERCENT coverage of colored cells. Values are 0<=integer<=100. The \ default=50. -s seeds ... random number SEEDS. Values are a comma separate pair of positive integers. The default="200,300". -t thickness ... THICKNESS of white grid lines. Values are integer>=0. The default=0 (no grid). Odd values will be rounded up to even values. -d diameters ... DIAMETERS of an elliptical mask expressed as a percent of the width and height of the image. Values are a comma separate pair of integers. The default="70,70". If the value is 0 (0,0), then no mask will be used. NOTE: The script will be slower the more cells that are created. REFERENCE: http://www.photoshopessentials.com/photo-effects/color-grid-photo-display-effect/ CAVEAT: No guarantee that this script will work on all platforms, nor that trapping of inconsistent parameters is complete and foolproof. Use At Your Own Risk. |
Example 1 |
Original Image |
Arguments: |
|
Arguments: |
|
Arguments: |
|
Arguments: |
|
Arguments: |
|
Arguments: |
What the script does is as follows:
This is equivalent to the following IM commands when no mask is used:
|