--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Assign the given <tt>color</tt> to an unoccupied entry in this palette and return it. Does not check whether the color is already allocated, and raises an error for Image::IndexedColor palettes if the palette is full.
full_name: GD2::Palette#allocate
is_singleton: false
name: allocate
params: (color)
visibility: public
