Fix up the dielectric, and output as PNG (#4)

This commit is contained in:
Patrick Stevens
2021-04-18 11:43:10 +01:00
committed by GitHub
parent 5c1b634539
commit 52aa652306
12 changed files with 348 additions and 76 deletions

View File

@@ -59,6 +59,15 @@ module Colour =
Blue = 180uy
}
let random (rand : Random) =
let buffer = Array.zeroCreate<byte> 3
rand.NextBytes buffer
{
Red = buffer.[0]
Green = buffer.[1]
Blue = buffer.[2]
}
type PixelStats =
private
{