class

PrismatIQ::Core::PaletteConvenience

Inherits Reference < Object

Constructors

new(config : Config = Config.default)

Instance methods

get_color(img : CrImage::Image) : RGB | Nil
get_color_from_io(io : IO) : RGB | Nil
get_color_from_path(path : String) : RGB | Nil
get_palette_channel(path : String, options : Options = Options.default) : Channel(Array(RGB))
get_palette_color_thief(pixels : Slice(UInt8), width : Int32, height : Int32, options : Options = Options.default) : Array(String)
get_palette_with_stats(pixels : Slice(UInt8), width : Int32, height : Int32, options : Options = Options.default) : Tuple(Array(PaletteEntry), Int32)