Struct NodeColorMix
Namespace: Unity.VisualScripting
Syntax
public struct NodeColorMix : IEnumerable<KeyValuePair<NodeColor, float>>, IEnumerable
Constructors
NodeColorMix(NodeColor)
Declaration
public NodeColorMix(NodeColor color)
Parameters
Type | Name | Description |
---|---|---|
NodeColor | color |
Properties
blue
Declaration
public float blue { readonly get; set; }
Property Value
Type | Description |
---|---|
Single |
colors
Declaration
public readonly IEnumerable<KeyValuePair<NodeColor, float>> colors { get; }
Property Value
Type | Description |
---|---|
IEnumerable<KeyValuePair<NodeColor, Single>> |
gray
Declaration
public float gray { readonly get; set; }
Property Value
Type | Description |
---|---|
Single |
green
Declaration
public float green { readonly get; set; }
Property Value
Type | Description |
---|---|
Single |
Item[NodeColor]
Declaration
public float this[NodeColor color] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
NodeColor | color |
Property Value
Type | Description |
---|---|
Single |
normalized
Declaration
public readonly NodeColorMix normalized { get; }
Property Value
Type | Description |
---|---|
NodeColorMix |
orange
Declaration
public float orange { readonly get; set; }
Property Value
Type | Description |
---|---|
Single |
red
Declaration
public float red { readonly get; set; }
Property Value
Type | Description |
---|---|
Single |
teal
Declaration
public float teal { readonly get; set; }
Property Value
Type | Description |
---|---|
Single |
TealReadable
Declaration
public static readonly NodeColorMix TealReadable { get; }
Property Value
Type | Description |
---|---|
NodeColorMix |
yellow
Declaration
public float yellow { readonly get; set; }
Property Value
Type | Description |
---|---|
Single |
Methods
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<NodeColor, float>> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<KeyValuePair<NodeColor, Single>> |
IsPure(NodeColor)
Declaration
public bool IsPure(NodeColor color)
Parameters
Type | Name | Description |
---|---|---|
NodeColor | color |
Returns
Type | Description |
---|---|
Boolean |
Normalize()
Declaration
public void Normalize()
PopulateColorsList(List<KeyValuePair<NodeColor, Single>>)
Declaration
public void PopulateColorsList(List<KeyValuePair<NodeColor, float>> list)
Parameters
Type | Name | Description |
---|---|---|
List<KeyValuePair<NodeColor, Single>> | list |
Operators
Implicit(NodeColor to NodeColorMix)
Declaration
public static implicit operator NodeColorMix(NodeColor color)
Parameters
Type | Name | Description |
---|---|---|
NodeColor | color |
Returns
Type | Description |
---|---|
NodeColorMix |