func (c Color) ToXYZ() ciexyz.Color {
	return ciexyz.Color{
		X: c.R*0.41238652374145657 + c.G*0.35759149384555927 + c.B*0.18045052788799043,
		Y: c.R*0.21263680803732615 + c.G*0.7151829876911185 + c.B*0.07218020427155547,
		Z: c.R*0.019330619488581533 + c.G*0.11919711488225383 + c.B*0.9503727125209493,
	}
}
ToXYZ returns a CIE XYZ representation of this colour.
package srgb
import (
	"github.com/mandykoh/prism/ciexyz"
	"github.com/mandykoh/prism/linear"
	"image/color"
)
type Color struct {
	linear.RGB
}
func (c Color) ToNRGBA(alpha float32) color.NRGBA {
	return c.RGB.ToEncodedNRGBA(alpha, To8Bit)
}
func (c Color) ToRGBA(alpha float32) color.RGBA {
	return c.RGB.ToEncodedRGBA(alpha, To8Bit)
}
func (c Color) ToRGBA64(alpha float32) color.RGBA64 {
	return c.RGB.ToEncodedRGBA64(alpha, To16Bit)
}