Method: Fractal::Map#bytes
- Defined in:
- lib/fractal/map.rb
#bytes ⇒ Object
Encodes the map as a grayscale bitmap, with a color depth of 8 bits per pixel.
Returns the bitmap as an array of bytes.
46 47 48 |
# File 'lib/fractal/map.rb', line 46 def bytes flatten.pack("C*").bytes.to_a end |