class StumpyGIF::NeuQuantEntry

Defined in:

stumpy_gif/neuquant.cr

Constant Summary

BETA = 1.0 / 1024
GAMMA = 1024.0

Constructors

Instance Method Summary

Constructor Detail

def self.new(r : Float64, g : Float64, b : Float64) #

[View source]

Instance Method Detail

def b : Float64 #

[View source]
def b=(b : Float64) #

[View source]
def bias : Float64 #

[View source]
def bias=(bias : Float64) #

[View source]
def distance(pixel) #

[View source]
def frequency : Float64 #

[View source]
def frequency=(frequency : Float64) #

[View source]
def g : Float64 #

[View source]
def g=(g : Float64) #

[View source]
def r : Float64 #

[View source]
def r=(r : Float64) #

[View source]
def update_bias(closest) #

[View source]
def update_values(pixel, factor) #

[View source]