Skip to content
This repository was archived by the owner on Apr 20, 2025. It is now read-only.
/ ColorBar Public archive

A Mathematica package to design custom color functions

Notifications You must be signed in to change notification settings

rsmenon/ColorBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

⚠️ THIS PACKAGE IS NOT MAINTAINED

ColorBar

ColorBar is an interactive ColorFunction designer for Mathematica. It allows you to easily modify existing color functions, change colors or vary the blending fraction and get the final result in other applications. You can also use it directly inside a plotting function.

Installation & basic usage

Copy the ColorBar.m file to your $UserBaseDirectory and load it in via Needs["ColorBar`"]. The ColorBar function can be used with built-in color functions

ColorBar usage: built-in

or with custom color functions

ColorBar usage: custom

Use Setting to extract the corresponding color function.

Setting

Use "Evaluate in place" on ColorBar[] to use the colorbar designer inside a plotting function.

Modifying control points

  • Click and drag the control points (triangles) to change the transition region

  • Click on a control point to change its color

  • Click while holding down Command (or Alt in Windows & Linux) to add a control point at that location.

  • Click on a control point while holding Shift to delete a control point (a minimum of 2 control points will always remain).

About

A Mathematica package to design custom color functions

Resources

Stars

Watchers

Forks