-let rngCell = System.Random()
-let drawCell (img: Image<Bgr, byte>) (drawCellContent: bool) (c: Cell) =
- if drawCellContent
- then
- let colorB = rngCell.Next(20, 70)
- let colorG = rngCell.Next(20, 70)
- let colorR = rngCell.Next(20, 70)
-
- for y in 0 .. c.elements.Height - 1 do
- for x in 0 .. c.elements.Width - 1 do
- if c.elements.[y, x] > 0uy
- then
+let rngCell = System.Random ()
+let drawCell (img : Image<Bgr, byte>) (drawCellContent : bool) (c : Cell) =
+ if drawCellContent then
+ let colorB = rngCell.Next (20, 70)
+ let colorG = rngCell.Next (20, 70)
+ let colorR = rngCell.Next (20, 70)
+
+ for y = 0 to c.elements.Height - 1 do
+ for x = 0 to c.elements.Width - 1 do
+ if c.elements.[y, x] > 0uy then