WireSkin
ReferencesThe look of one kind of wire: colours and strokes. Colours are shared between kinds by WiresSkin; this is the resolved view for a single kind.
Constructors
WireSkin
#public WireSkin(Color normal, Color selected, Color glow, EdgeDescription outer, EdgeDescription inner = null)
Parameters:
| normal (Color) | Colour of a wire with no selected end. |
| selected (Color) | Colour of a wire with both ends selected. |
| glow (Color) | Glow behind a wire with both ends selected. |
| outer (EdgeDescription) | Main wire stroke. |
| inner (EdgeDescription = null) | Optional core stroke. |
WireSkin
#Deserialisation constructor. Older files also carry an unselected colour, which is ignored.
Parameters:
| reader (IReader) |
Properties
Colours
#HalfSelected
#public Color HalfSelected { get; }
Gets the colour at the unselected end of a wire whose other end is selected. This is a fixed blend of the normal and selected colours, not a skin setting.
Selected
#public Color Selected { get; }
Gets the colour of a wire with both ends selected, and of the selected end of a wire with one.
Methods
Interpolate
#Interpolate wire properties.
Modify
#public WireSkin Modify(Color? normal = null, Color? selected = null, Color? selectedGlow = null, EdgeDescription outerEdge = null, EdgeDescription innerEdge = null)
Modify some wire skin settings. This method has been designed to support named arguments.
Parameters:
| normal (Color? = null) | |
| selected (Color? = null) | |
| selectedGlow (Color? = null) | |
| outerEdge (EdgeDescription = null) | |
| innerEdge (EdgeDescription = null) |
Returns: Modified skin.
ResolveColours
#Resolve the appropriate colours for a wire with specific selected states at both ends.