1
module ParasitemiaUI.Types
5 open System.Windows.Media
10 let healthyRBColor = Color.FromRgb(255uy, 255uy, 0uy) // Yellow-green.
11 let infectedRBColor = Color.FromRgb(255uy, 0uy, 40uy) // Red with a bit of blue.
16 mutable infected: bool
17 mutable setManually: bool
25 mutable config: ParasitemiaCore.Config.Config
26 mutable dateLastAnalysis: DateTime // UTC.
28 mutable rbcs: RBC list
30 mutable healthyRBCBrightness: float32
31 mutable infectedRBCBrightness: float32
} with
33 member this
.HealthyRBCColor: SolidColorBrush =
34 let mutable color = healthyRBColor * this
.healthyRBCBrightness
36 SolidColorBrush(color)
38 member this
.InfectedRBCColor: SolidColorBrush =
39 let mutable color = infectedRBColor * this
.infectedRBCBrightness
41 SolidColorBrush(color)