Class: RAGE::Color

Inherits:
Object
  • Object
show all
Defined in:
lib/rage/color.rb

Overview

Represents a rgb color in the framework

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Color

Returns a new instance of Color.



12
13
14
15
# File 'lib/rage/color.rb', line 12

def initialize(args = {})
  rgb = args[:rgb]
  @color = Window.screen.format.map_rgb(*rgb)
end

Instance Attribute Details

#colorObject

Returns the value of attribute color.



10
11
12
# File 'lib/rage/color.rb', line 10

def color
  @color
end