Class: Color

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

Overview

RGSSx

This class is present and consistent across all RGSS versions.

Color

The RGBA color class. Each component is handled with a floating-point value (Float).

Instance Attribute Summary collapse

Instance Attribute Details

#alphaObject

The alpha value (0-255).



18
19
20
# File 'lib/eidolon/rgssx/color.rb', line 18

def alpha
  @alpha
end

#blueObject

The blue value (0-255).



15
16
17
# File 'lib/eidolon/rgssx/color.rb', line 15

def blue
  @blue
end

#greenObject

The green value (0-255).



12
13
14
# File 'lib/eidolon/rgssx/color.rb', line 12

def green
  @green
end

#redObject

The red value (0-255).



9
10
11
# File 'lib/eidolon/rgssx/color.rb', line 9

def red
  @red
end