struct

PNG::Palette

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

Constructors

new(data : Slice(UInt8))
Source

Instance methods

add(color : Indexable(UInt8))
Source
clone
Source
data
Source
data=(data : Bytes)
Source
find_or_add(color : Indexable(UInt8))
Source
size

Returns the number of elements in this container.

Source
unsafe_fetch(index)
Source
unsafe_put(index, value)
Source