struct PNG::HSV

Defined in:

png/colors/hsv.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from struct PNG::Color(Float64, 3)

==(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

Constructor methods inherited from struct PNG::Color(Float64, 3)

new(channels : StaticArray(T, N)) new

Constructor Detail

def self.new(h : T, s : T, v : T) #

[View source]
def self.new(channels : StaticArray(T, N)) #

[View source]

Class Method Detail

def self.[](h : T, s : T, v : T) #

[View source]

Instance Method Detail

def dist(other) #

Get the Euclidean distance between self and other


[View source]
def h #

[View source]
def h=(value : T) #

[View source]
def s #

[View source]
def s=(value : T) #

[View source]
def to_s(io : IO) #
Description copied from struct Struct

Same as #inspect(io).


[View source]
def to_u16 #

[View source]
def to_u32 #

[View source]
def to_u8 #

[View source]
def v #

[View source]
def v=(value : T) #

[View source]