mirror of
https://github.com/Smaug123/ray-tracing-fsharp
synced 2025-10-10 06:18:39 +00:00
Fix up the dielectric, and output as PNG (#4)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user