struct PNG::RGBA(T)
- PNG::RGBA(T)
- PNG::Color(T, 4)
- Struct
- Value
- Object
Defined in:
png/colors/rgba.crConstructors
Class Method Summary
Instance Method Summary
- #a
- #a=(value : T)
- #b
- #b=(value : T)
-
#dist(other)
Get the Euclidean distance between self and other
- #g
- #g=(value : T)
- #r
- #r=(value : T)
-
#to_g8
via luminosity method
- #to_rgb8
-
#to_s(io : IO)
Same as
#inspect(io)
. - #to_u16
- #to_u32
- #to_u8
Instance methods inherited from struct PNG::Color(T, 4)
==(other)
==,
[](*args, **options)[](*args, **options, &) [], []=(*args, **options) []=, bytesize bytesize, channels : StaticArray(T, N) channels, channels=(channels : StaticArray(T, N)) channels=, each(*args, **options)
each(*args, **options, &) each, num_channels num_channels, size(*args, **options)
size(*args, **options, &) size, to_bytes to_bytes, to_slice to_slice, unsafe_fetch(*args, **options)
unsafe_fetch(*args, **options, &) unsafe_fetch, unsafe_put(*args, **options)
unsafe_put(*args, **options, &) unsafe_put