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,
Colour of a wire with no selected end.
Color
selected,
Colour of a wire with both ends selected.
Color
glow,
Glow behind a wire with both ends selected.
outer,
Main wire stroke.
inner = null
Optional core stroke.
WireSkin
#Deserialisation constructor. Older files also carry an unselected colour, which is ignored.
WireSkin
#Properties
Colours
#HalfSelected
#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.
public Color HalfSelected { get; }
Selected
#Gets the colour of a wire with both ends selected, and of the selected end of a wire with one.
public Color Selected { get; }
Methods
Modify
#Modify some wire skin settings. This method has been designed to support named arguments.
public WireSkin Modify()
Color?
normal = null,
Color?
selected = null,
Color?
selectedGlow = null,
outerEdge = null,
innerEdge = null
Returns: Modified skin.
ResolveColours
#Resolve the appropriate colours for a wire with specific selected states at both ends.