package
Version:
v0.0.0-...-9c88ebf
Opens a new window with list of versions in this module.
Published: Aug 31, 2022
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Color struct {
R, G, B float64
}
Color is an RGB color where each value is in the range 0 to 1.
Avg finds the average of a set of colors.
RGBAColor converts an RGBA color to Color.
Radiate compounds the brightness of a set of colors.
Reflect finds the product of a set of colors - this is for Raytracing
reflections.
RGBA converts a color to an RGBA color with A set to 255.
Scale multiplies all values of a color by a scale factor.
Material holds information that different renderers can use to shade a
material.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.