Documentation ¶
Overview ¶
Package colour provides methods for working with colour profiles.
Index ¶
- func NewAdobeRGBTransformation(ctx context.Context, uri string) (transform.Transformation, error)
- func NewDisplayP3Transformation(ctx context.Context, uri string) (transform.Transformation, error)
- func ToAdobeRGB(im image.Image) image.Image
- func ToDisplayP3(im image.Image) image.Image
- type AdobeRGBTransformation
- type DisplayP3Transformation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdobeRGBTransformation ¶
NewAdobeRGBTransformation returns a new `AdobeRGBTransformationTransformation` instance configured by 'uri' which is expected to take the form of:
adobergb://
func NewDisplayP3Transformation ¶
NewDisplayp3Transformation returns a new `Displayp3TransformationTransformation` instance configured by 'uri' which is expected to take the form of:
displayp3://
func ToAdobeRGB ¶
ToAdobeRGB converts all the colours in 'im' to match the Adobe RGB colour profile.
Types ¶
type AdobeRGBTransformation ¶
type AdobeRGBTransformation struct {
transform.Transformation
}
AdobeRGBTransformation implements the `transform.Transformation` interface for converting all the colours in an image to match the Adobe RGB colour profile.
type DisplayP3Transformation ¶
type DisplayP3Transformation struct {
transform.Transformation
}
Displayp3Transformation implements the `transform.Transformation` interface for converting all the colours in an image to match the Apple Display P3 colour profile.