HueSplit - Maple Help

ColorTools

 HueSplit
 create colors with hue halfway between two given colors

 Calling Sequence HueSplit(color1, color2)

Parameters

 color1,color2 - colors in formats recognized by ColorTools

Description

 • The command HueSplit generates one or two new colors which have hue that is midway between color1 and color2.
 • If the two input colors have the same saturation and lightness then only one color is returned.  Otherwise, a pair of colors is return each having the same saturation and lightness as one of the input colors.
 • If either color is a shade of gray, then the empty list is returned.
 • If the colors are antipodes on the HSV color wheel, then the midpoint is taken clockwise.

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{HueSplit}\left(\mathrm{Color}\left("HSV","Red"\right),\mathrm{Color}\left("HSV","Cyan"\right)\right)$
 $\left[{⟨}\colorbox[rgb]{0.501960784313725,0,1}{{HSV : 0.75 1 1}}{⟩}\right]$ (1)
 > $\mathrm{HueSplit}\left(\mathrm{Color}\left("HSV","Cyan"\right),\mathrm{Color}\left("HSV","Red"\right)\right)$
 $\left[{⟨}\colorbox[rgb]{0.501960784313725,1,0}{HSV : 0.25 1 1}{⟩}\right]$ (2)
 > $\mathrm{HueSplit}\left(\mathrm{Color}\left("HSV","Coral"\right),\mathrm{Color}\left("HSV","Green"\right)\right)$
 $\left[{⟨}\colorbox[rgb]{0.909803921568627,1,0.313725490196078}{HSV : 0.189 0.686 1}{⟩}{,}{⟨}\colorbox[rgb]{0.435294117647059,0.501960784313725,0}{HSV : 0.189 1 0.502}{⟩}\right]$ (3)
 > $\mathrm{split}≔\mathrm{HueSplit}\left(\mathrm{Color}\left("HSV","Green"\right),\mathrm{Color}\left("HSV","Coral"\right)\right)$
 ${\mathrm{split}}{≔}\left[{⟨}\colorbox[rgb]{0.435294117647059,0.501960784313725,0}{HSV : 0.189 1 0.502}{⟩}{,}{⟨}\colorbox[rgb]{0.909803921568627,1,0.313725490196078}{HSV : 0.189 0.686 1}{⟩}\right]$ (4)
 > $\mathrm{HSVColorWheel}\left(\left["Green",\mathrm{split}\left[\right],"Coral"\right]\right)$
 > $\mathrm{HueSplit}\left("Black","White"\right)$
 $\left[\right]$ (5)

Compatibility

 • The ColorTools[HueSplit] command was introduced in Maple 16.
 • For more information on Maple 16 changes, see Updates in Maple 16.