lib/chunky_png/palette.rb in chunky_png-0.10.4 vs lib/chunky_png/palette.rb in chunky_png-0.10.5
- old
+ new
@@ -69,12 +69,12 @@
def self.from_pixels(pixels)
self.new(pixels)
end
# Checks whether the size of this palette is suitable for indexed storage.
- # @return [true, false] True if the number of colors in this palette is less than 256.
+ # @return [true, false] True if the number of colors in this palette is at most 256.
def indexable?
- size < 256
+ size <= 256
end
# Check whether this pelette only contains opaque colors.
# @return [true, false] True if all colors in this palette are opaque.
# @see ChunkyPNG::Color#opaque?