Wolfram Research

Hue Color Gradients

Source Notebook

Collection of gradient hues from coolHue

Details

The data is imported from and formatted for the Wolfram Language.
The default content is a list of color gradients.

Examples

Basic Examples

In[1]:=
ResourceData[\!\(\*
TagBox["\"\<Hue Color Gradients\>\"",
#& ,
BoxID -> "ResourceTag-Hue Color Gradients-Input",
AutoDelete->True]\)]
Out[1]=

Apply a hue gradient filling to a rectangle:

In[2]:=
Graphics[{LinearGradientFilling[ResourceData[\!\(\*
TagBox["\"\<Hue Color Gradients\>\"",
#& ,
BoxID -> "ResourceTag-Hue Color Gradients-Input",
AutoDelete->True]\)][[1]]], RegularPolygon[4]}]
Out[2]=

Fill from a curve to the axis:

In[3]:=
Plot[2 Sin[x] + x, {x, 0, 15}, FillingStyle -> LinearGradientFilling[ResourceData[\!\(\*
TagBox["\"\<Hue Color Gradients\>\"",
#& ,
BoxID -> "ResourceTag-Hue Color Gradients-Input",
AutoDelete->True]\)][[2]], Top], Filling -> Bottom]
Out[3]=

Gradient Fillings

Use LinearGradientFilling to apply a linear gradient filling of the US map:
In[4]:=
colors = ResourceData[\!\(\*
TagBox["\"\<Hue Color Gradients\>\"",
#& ,
BoxID -> "ResourceTag-Hue Color Gradients-Input",
AutoDelete->True]\)][[4]]
Out[4]=
In[5]:=
GeoGraphics[{LinearGradientFilling[colors], Polygon[\!\(\*
NamespaceBox["LinguisticAssistant",
DynamicModuleBox[{WolframAlphaClient`Private`query$$ = "United States", WolframAlphaClient`Private`boxes$$ = TemplateBox[{"\"United States\"", 
RowBox[{"Entity", "[", 
RowBox[{"\"Country\"", ",", "\"UnitedStates\""}], "]"}], "\"Entity[\\\"Country\\\", \\\"UnitedStates\\\"]\"", "\"country\""}, "Entity"], WolframAlphaClient`Private`allassumptions$$ = {}, WolframAlphaClient`Private`assumptions$$ = {}, WolframAlphaClient`Private`open$$ = {1, 2}}, 
DynamicBox[ToBoxes[
AlphaIntegration`LinguisticAssistantBoxes["", 1, 
Dynamic[WolframAlphaClient`Private`query$$], 
Dynamic[WolframAlphaClient`Private`boxes$$], 
Dynamic[WolframAlphaClient`Private`allassumptions$$], 
Dynamic[WolframAlphaClient`Private`assumptions$$], 
Dynamic[WolframAlphaClient`Private`open$$]], StandardForm],
ImageSizeCache->{182., {7., 17.}},
TrackedSymbols:>{
         WolframAlphaClient`Private`query$$, WolframAlphaClient`Private`boxes$$, WolframAlphaClient`Private`allassumptions$$, WolframAlphaClient`Private`assumptions$$, WolframAlphaClient`Private`open$$}],
DynamicModuleValues:>{},
UndoTrackedVariables:>{WolframAlphaClient`Private`open$$}],
BaseStyle->{"Deploy"},
DeleteWithContents->True,
Editable->False,
SelectWithContents->True]\)]}]
Out[5]=

Use ConicGradientFilling to style a sector chart:

In[6]:=
colors = ResourceData[\!\(\*
TagBox["\"\<Hue Color Gradients\>\"",
#& ,
BoxID -> "ResourceTag-Hue Color Gradients-Input",
AutoDelete->True]\)][[6]]
Out[6]=
In[7]:=
SectorChart[Tuples[{1, 2}, 2], ChartStyle -> ConicGradientFilling[colors, ImageScaled[{0.5, 0.5}]], Sequence[
 PolarGridLines -> Automatic, PolarAxes -> Automatic, PolarTicks -> {0, 60 Degree, 120 Degree, 240 Degree, 300 Degree}, SectorOrigin -> 0]]
Out[7]=

Apply a RadialGradientFilling to a rectangle:

In[8]:=
colors = ResourceData[\!\(\*
TagBox["\"\<Hue Color Gradients\>\"",
#& ,
BoxID -> "ResourceTag-Hue Color Gradients-Input",
AutoDelete->True]\)][[10]]
Out[8]=
In[9]:=
Graphics[{RadialGradientFilling[colors, {{0.05, 0}, {1, 1.1}}], RegularPolygon[4]}]
Out[9]=

Wolfram Research, "Hue Color Gradients" from the Wolfram Data Repository (2021) 

License Information

https://raw.githubusercontent.com/webkul/coolhue/master/LICENSE

Data Resource History

Source Metadata

Publisher Information