Added packages for linear grayscale colour varients.

This commit is contained in:
2025-03-27 09:17:35 -04:00
parent a0c520c3ed
commit 2410cce342
24 changed files with 654 additions and 106 deletions

View File

@ -19,7 +19,7 @@ func midpoint(c0, c1 Color) Color {
}
func TestModel(t *testing.T) {
helper.TestModel(t, false, Model, eq, []helper.ConvertTest[Color]{
helper.TestModel(t, true, false, Model, eq, []helper.ConvertTest[Color]{
{
Name: "passthrough",
In: Color{math.Inf(1), math.Inf(-1), math.NaN()},
@ -29,5 +29,5 @@ func TestModel(t *testing.T) {
}
func TestDistance(t *testing.T) {
helper.TestDistance(t, false, midpoint, Distance, Model)
helper.TestDistance(t, true, false, midpoint, Distance, Model)
}