struct

PNG::GrayAlpha(T)

Inherits PNG::Color / Indexable::Mutable / Indexable / Enumerable / Iterable / Struct / Value / Object

Constructors

new(g : T, a : T)
Source
new(channels : StaticArray(T, N))
Source

Class methods

[](g : T, a : T)
Source
color_type
Source

Instance methods

a=(value : T)
Source
dist(other)

Get the Euclidean distance between self and other

Source
g=(value : T)
Source
to_g8
Source
to_rgb8
Source
to_s(io : IO)

Same as #inspect(io).

Source
to_u16
Source
to_u32
Source
to_u8
Source