ASILPalette
object ASILPalette
ASIL color palette.
Returned hex values are generic and can be used in DOT attributes (color, fontcolor, fillcolor) or any other renderer.
Types
Properties
Functions
Link copied to clipboard
Link copied to clipboard
fun colorForLevel(asil: ASIL?, level: Int, maxLevel: Int = DIAGRAM_LEVEL_MAX, style: ASILPalette.Style = defaultStyle): String
Fill colour for any node on the unified top-down hierarchy scale (ElementType.hierarchyLevel / CodeConstructKind.hierarchyLevel): Vehicle 0 … Component/Activity 5 … Instruction DIAGRAM_LEVEL_MAX.
Link copied to clipboard
fun desaturatedFillHex(asil: ASIL?, whiteRatio: Double, style: ASILPalette.Style = defaultStyle): String
Returns the ASIL's fill colour blended toward white by whiteRatio (0.0 = original colour, 1.0 = pure white). Used by the DOT pipeline to give nested cluster boxes the same ASIL hue as their contents but with progressively lower saturation:
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard