# File examples/oo-board.rb, line 17
  def initialize(*args)
    # number, width, and height of boxes
    @w, @h, @bw, @bh = args
    
    # foreground, background, top piece, and bottom piece colors
    @fg, @bg = Imlib2::Color::WHITE, Imlib2::Color::BLACK
    @tc, @bc = Imlib2::Color::RED, Imlib2::Color::BLUE
    
    # allocate the new image and fill it with the background color
    @im = Imlib2::Image.new @w * @bw, @h * @bh
    @im.fill_rect [0, 0], [@w * @bw, @h * @bh], @bg
  end