--- !ruby/object:RI::ClassDescription 
attributes: 
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: The palette index of this color, if associated with an image palette
  name: index
  rw: R
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: The palette of this color, if associated with an image palette
  name: palette
  rw: R
class_methods: 
- !ruby/object:RI::MethodSummary 
  name: new
comment: 
- !ruby/struct:SM::Flow::H 
  level: 1
  text: Description
- !ruby/struct:SM::Flow::P 
  body: Color objects hold the red, green, blue, and alpha components for a pixel color. Color objects may also be linked to a particular palette index associated with an image.
- !ruby/struct:SM::Flow::H 
  level: 2
  text: Creating
- !ruby/struct:SM::Flow::P 
  body: "Color objects are created by specifying the individual components:"
- !ruby/struct:SM::Flow::VERB 
  body: "  red   = Color[1.0, 0.0, 0.0]\n  green = Color[0.0, 1.0, 0.0]\n  blue  = Color[0.0, 0.0, 1.0]\n\n  transparent_yellow = Color[1.0, 1.0, 0.0, 0.5]\n"
- !ruby/struct:SM::Flow::P 
  body: The components may be specified as a percentage, as an explicit value between 0..RGB_MAX or 0..ALPHA_MAX, or as another color from which the associated component will be extracted.
constants: 
- !ruby/object:RI::Constant 
  comment: 
  name: BLACK
  value: Color[0.0, 0.0, 0.0].freeze
- !ruby/object:RI::Constant 
  comment: 
  name: WHITE
  value: Color[1.0, 1.0, 1.0].freeze
- !ruby/object:RI::Constant 
  comment: 
  name: TRANSPARENT
  value: Color[0.0, 0.0, 0.0, ALPHA_TRANSPARENT].freeze
full_name: GD2::Color
includes: []

instance_methods: 
- !ruby/object:RI::MethodSummary 
  name: "<<"
- !ruby/object:RI::MethodSummary 
  name: ==
- !ruby/object:RI::MethodSummary 
  name: ===
- !ruby/object:RI::MethodSummary 
  name: a
- !ruby/object:RI::MethodSummary 
  name: a=
- !ruby/object:RI::MethodSummary 
  name: alpha
- !ruby/object:RI::MethodSummary 
  name: alpha=
- !ruby/object:RI::MethodSummary 
  name: alpha_blend
- !ruby/object:RI::MethodSummary 
  name: alpha_blend!
- !ruby/object:RI::MethodSummary 
  name: b
- !ruby/object:RI::MethodSummary 
  name: b=
- !ruby/object:RI::MethodSummary 
  name: blue
- !ruby/object:RI::MethodSummary 
  name: blue=
- !ruby/object:RI::MethodSummary 
  name: eql?
- !ruby/object:RI::MethodSummary 
  name: from_palette?
- !ruby/object:RI::MethodSummary 
  name: g
- !ruby/object:RI::MethodSummary 
  name: g=
- !ruby/object:RI::MethodSummary 
  name: green
- !ruby/object:RI::MethodSummary 
  name: green=
- !ruby/object:RI::MethodSummary 
  name: opaque?
- !ruby/object:RI::MethodSummary 
  name: r
- !ruby/object:RI::MethodSummary 
  name: r=
- !ruby/object:RI::MethodSummary 
  name: red
- !ruby/object:RI::MethodSummary 
  name: red=
- !ruby/object:RI::MethodSummary 
  name: to_s
- !ruby/object:RI::MethodSummary 
  name: transparent?
name: Color
superclass: Object
