Convert Rgb to Yxy | xy to rgb
RgbTheRgbcolorspaceconsistsofallpossiblecolorsthatcanbemadebythecombinationofred,green,andbluelight.Itsapopularmodelinphotography,television,andcomputergraphics.YxyTheYxycolorspaceexpressestheXyzcolorspaceinadifferentway,intermsofonlyxandycoordinateswhichallowsfora2drepresentation.Lookingforthecode?AllcalculationsweredoingusingtheopensourceColorMine[1]library.ThecodeusedfortheRgbandYxyconversionscanbefoundonGithub:ConversionExample:varrgb=newRgb();varyxy=rgb.To
The Rgb color space consists of all possible colors that can be made by the combination of red, green, and blue light. Its a popular model in photography, television, and computer graphics.
YxyThe Yxy color space expresses the Xyz color space in a different way, in terms of only x and y coordinates which allows for a 2d representation.
Looking for the code?All calculations were doing using the open source ColorMine[1] library.
The code used for the Rgb and Yxy conversions can be found on Github:
Conversion Example: var rgb = new Rgb();var yxy = rgb.To<Yxy>(); References ColorMine (github.com)