WiresSkin
ReferencesConstructors
WiresSkin
#Deserialisation constructor. Files written before colours were shared hold one full wire skin per kind; those are folded into the groups, taking the shared colours from the item wire.
Parameters:
| reader (IReader) |
WiresSkin
#Create a new wire palette.
Parameters:
| colours (WireColours[]) | One entry per WireGroup, in enum order. |
| glow (Color) | The glow behind selected wires of every kind. |
| edges (WireEdges[]) | One entry per WireKind, in enum order. |
Fields
Properties
Glow
#public Color Glow { get; }
Gets the glow drawn behind a wire with both ends selected, the same for every kind.
Indexers
this[]
#Gets the wire properties associated with a particular parameter.
Parameters:
| parameter (IParameter) |
Methods
Fade
#Multiply the alpha value colours in this collection with the given factor.
Parameters:
| factor (float) | Fading factor. 0=fully transparent, 1=no change. |
Returns: Modified palette.
Interpolate
#Interpolate between schemes.
ResolveKind
#Figure out which wire style best applies to a given parameter. Activity is a property of the founding object, so a parameter inside a disabled component counts as disabled even though its own flag never changes.
Parameters:
| parameter (IParameter) |
ResolveKind
#Figure out which wire style best applies to a given parameter pair. A wire into or out of a disabled object is inert either way, so both ends count.
Parameters:
| source (IParameter) | |
| target (IParameter) |
With
#Modify one of the wires: its strokes, the colours of the group it belongs to, and the shared glow.