Basic Examples (5)
After the identity mapping is applied, the domain coloring of the unit square centered at the origin winds around the color wheel once:
The domain coloring along this curve can be visualized:
The "HuePlot" output plots the domain coloring Hue value along the curve:
Over the entire plane, the domain coloring of the identity mapping preserves the color wheel centered at the origin:
If the order of the points is reversed, the winding number is negated:
Scope (4)
Each 2D transformation produces its own domain coloring:
Specify a collection of curves:
All forms of Rectangle are recognized as valid lists of points:
All forms of Triangle are also supported:
The heads Polygon and Line are supported:
Multiple output types can be selected in a list and their input order is reflected in the output:
If All is used as the output type, the function returns an Association:
Options (5)
Determine if the list of points defines a closed curve:
The "IterationLength" option determines how frequently the Hue value is sampled along the curve, which produces more accurate results:
The actual winding number is -1, as seen by inspecting the jumps in the below plot:
The color wheel can be shifted by a selected amount:
Only the decimal value affects the hue shift:
The value of "IterationLength" determines how frequently the Hue value is sampled, as visualized below:
The options for ParametricPlot are also supported:
Applications (5)
For continuous transformations, any closed curve with a nonzero winding number contains a zero of the transformation:
If a boundary with nonzero winding number is halved, one half must also have a nonzero winding number:
Locate the zero by repeatedly decreasing the boundary size, ignoring areas where the winding number is zero:
The resulting boundary after repeating for a total of 10 times:
The midpoints of the boundaries approach a zero of the transformation:
Properties and Relations (2)
Vector plots provide another visualization of 2D transformations:
Shown together, the similarities between vector plots and domain coloring become apparent:
Possible Issues (3)
Discontinuities may occur in the color winding of a curve passing through a zero of the transformation:
A similar effect occurs for a curve passing though any asymptotes of the transformation:
Low values of the "IterationLength" option may produce inaccurate results:
Increasing the value of PlotPoints improves the resolution of the domain coloring:
Neat Examples (4)
Create neat shapes by overlapping several domain coloring curves:
Visualize how changing the transformation alters the domain coloring:
Draw the domain coloring using a collection of triangular boundaries:
Find the winding number along famous curves: