gmlewis/image/color does not have a README file
pub(open) trait Color {
rgba(Self) -> (UInt, UInt, UInt, UInt)
model(Self) -> String
raw(Self) -> (UInt, UInt, UInt, UInt)
}pub(all) struct Alpha {
a : Byte
}pub(all) struct Alpha16 {
a : UInt
}pub(all) struct CMYK {
c : Byte
m : Byte
y : Byte
k : Byte
}pub(all) struct Gray {
y : Byte
}pub(all) struct Gray16 {
y : UInt
}type ModelFuncpub(all) struct NRGBA {
r : Byte
g : Byte
b : Byte
a : Byte
}pub(all) struct NRGBA64 {
r : UInt
g : UInt
b : UInt
a : UInt
}pub(all) struct NYCbCrA {
y : Byte
cb : Byte
cr : Byte
a : Byte
}pub(all) struct RGBA {
r : Byte
g : Byte
b : Byte
a : Byte
}pub(all) struct RGBA64 {
r : UInt
g : UInt
b : UInt
a : UInt
}pub(all) struct YCbCr {
y : Byte
cb : Byte
cr : Byte
}fn cmyk_to_rgb(c : Byte, m : Byte, y : Byte, k : Byte) -> (Byte, Byte, Byte)fn rgb_to_cmyk(r : Byte, g : Byte, b : Byte) -> (Byte, Byte, Byte, Byte)fn rgb_to_y_cb_cr(r : Byte, g : Byte, b : Byte) -> (Byte, Byte, Byte)fn y_cb_cr_to_rgb(y : Byte, cb : Byte, cr : Byte) -> (Byte, Byte, Byte)