Module: Bumpspark::Formats::PNG

Included in:
Graph
Defined in:
lib/bumpspark/formats/png.rb

Constant Summary collapse

BLACK =
[0,    0,    0]
RED =
[0xFF, 0,    0]
GREY =
[0x99, 0x99, 0x99]
HEADER =
[137, 80, 78, 71, 13, 10, 26, 10].pack("C*")

Instance Method Summary collapse

Instance Method Details

#to_pngObject

Generate a PNG



16
17
18
# File 'lib/bumpspark/formats/png.rb', line 16

def to_png
  generate_png
end