struct

PNG::HSV

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

Constructors

new(h : T, s : T, v : T)
Source
new(channels : StaticArray(T, N))
Source

Class methods

[](h : T, s : T, v : T)
Source

Instance methods

dist(other)

Get the Euclidean distance between self and other

Source
h=(value : T)
Source
s=(value : T)
Source
to_s(io : IO)

Same as #inspect(io).

Source
to_u16
Source
to_u32
Source
to_u8
Source
v=(value : T)
Source