http://sidneys77crlfslcr7zmj3msmxchgnxhrxlp3p3kbaswo7twchjnicid.onion/programming/2022/03/23/raytracing.html
Since we’re used to
representing color as the combination of three values - red, green, and blue - we can represent each with a floating
point value between 0 and 1. Looking at our code, we already have a type to represent three floating point values: vf3d . Using a simple using alias, we can create a type alias called color3 that is really a vf3d behind the scenes.