Class: Contrek::Bitmaps::CustomBitmap

Inherits:
PngBitmap show all
Defined in:
lib/contrek/bitmaps/custom_bitmap.rb

Instance Method Summary collapse

Methods inherited from PngBitmap

#clear, #draw_line, #h, #hsv_at, #inspect, #resize_h, #rgb_value_at, #save, #to_tmp_file, #value_at, #value_set, #w

Methods inherited from Bitmap

#clear!, #copy_rect, #scan

Methods included from Painting

#bitmap_colors, direct_draw_polygons, #draw_line

Constructor Details

#initialize(w:, h:) ⇒ CustomBitmap



4
5
6
# File 'lib/contrek/bitmaps/custom_bitmap.rb', line 4

def initialize(w:, h:)
  @image = ChunkyPNG::Image.new(w, h, ChunkyPNG::Color::TRANSPARENT)
end