DiagramColorRules
StockSharp.Xaml.Diagram.Controls
The colours a diagram picks by itself, so that what it draws on a colour of the host can be read.
Methods
ReadableOutlineOn
public static Color ReadableOutlineOn(Color canvas)
result = DiagramColorRules.ReadableOutlineOn(canvas)
Outline for a shape drawn on the given canvas.
- canvas
- What the shape sits on.
Returns: The outline colour.
ReadableTextOn
public static Color ReadableTextOn(Color fill)
result = DiagramColorRules.ReadableTextOn(fill)
Title colour for a body filled with the given colour.
- fill
- The body's fill.
Returns: The title colour.