Home

Awesome

PrettyRandomColor

Generate pretty color in Mathematica. Ported from David Merfield's randomColor (f02eede).

Based on PrettyRandomColor, PrettyColorize is a useful tool for customizing the color of your figures in Mathematica.

Installation

  1. Open the Mathematica user application folder by SystemOpen @ FileNameJoin[{$UserBaseDirectory, "Applications"}];
  2. Create a folder called /PrettyRandomColor and place PrettyRandomColor.wl and /Kernel inside.

Usage

Code example

Graphics[
  Riffle[
    PrettyRandomColor[ColorCount -> 200], 
    Disk[#, 1/40] & /@ RandomReal[{.1, .9}, {200, 2}]
  ],
  PlotRange -> {0, 1},
  ImageSize -> 600
]
<img src="Imgs/gPRC.png" width="400">

Specifying Hue Options:

<p float="left"> <img src="Imgs/gPRCRed.png" alt="Hue -> Red" width="250"/> <img src="Imgs/gPRCGreen.png" width="250" /> <img src="Imgs/gPRCBlue.png" width="250" /> </p>

Other examples:

<p float="left"> <img src="Imgs/gPRCMono.png" alt="Hue -> Red" width="250"/> <img src="Imgs/gPRCLight.png" width="250" /> <img src="Imgs/gPRCOpacity.png" width="250" /> </p>