struct

PNG::RGB(T)

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

Constructors

new(r : T, g : T, b : T)
Source
new(channels : StaticArray(T, N))
Source

Class methods

[](r : T, g : T, b : T)
Source
color_type
Source
from_hsv(hsv : HSV)
Source

Instance methods

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

Get the Euclidean distance between self and other

Source
g=(value : T)
Source
r=(value : T)
Source
to_g8

via luminosity method

Source
to_rgb8
Source
to_s(io : IO)

Same as #inspect(io).

Source
to_tuple
Source
to_u16
Source
to_u32
Source
to_u8
Source