Class CIMPolarContinuousColorRamp
Represents a polar continuous color ramp scheme.
public class CIMPolarContinuousColorRamp : CIMContinuousColorRamp
- Inheritance
-
CIMPolarContinuousColorRamp
- Inherited Members
Remarks
A color ramp scheme that has a polar transition between two colors. This scheme uses the HSV algorithm which uses a path around the color wheel to transition the hue, saturation, and value of the beginning color to the hue, saturation, and value of the ending color.
Constructors
CIMPolarContinuousColorRamp()
public CIMPolarContinuousColorRamp()
Properties
InterpolationSpace
Gets or sets the color space in which the polar interpolation occurs. HSV, HLS, and LAB are the only supported color space types.
public ColorSpaceType InterpolationSpace { get; set; }
Property Value
PolarDirection
Gets or sets the direction of the polar progression for the path from the beginning hue to the ending hue.
public PolarDirection PolarDirection { get; set; }
Property Value
Methods
FromJson(string, JsonDeserializationSettings)
Reconstructs the CIMPolarContinuousColorRamp with a specified state from a JSON encoding.
public static CIMPolarContinuousColorRamp FromJson(string json, JsonDeserializationSettings settings = null)
Parameters
jsonstringThe JSON string containing the CIMPolarContinuousColorRamp state.
settingsJsonDeserializationSettingsThe JSON deserialization settings.
Returns
ToJson(JsonSerializationSettings)
Creates a JSON encoding of the CIMPolarContinuousColorRamp and its current state.
public override string ToJson(JsonSerializationSettings settings = null)
Parameters
settingsJsonSerializationSettingsThe JSON serialization settings.