Class: Color
- Inherits:
-
Object
- Object
- Color
- Defined in:
- lib/R3EXS/RGSS3.rb
Overview
RPG Maker VX Ace Color 类
Instance Attribute Summary collapse
-
#alpha ⇒ Object
Returns the value of attribute alpha.
-
#blue ⇒ Object
Returns the value of attribute blue.
-
#green ⇒ Object
Returns the value of attribute green.
-
#red ⇒ Object
Returns the value of attribute red.
Class Method Summary collapse
-
._load(obj) ⇒ Color
反序列化 Color 对象.
Instance Method Summary collapse
-
#_dump(_level) ⇒ String
序列化 Color 对象.
Instance Attribute Details
#alpha ⇒ Object
Returns the value of attribute alpha.
5 6 7 |
# File 'lib/R3EXS/RGSS3.rb', line 5 def alpha @alpha end |
#blue ⇒ Object
Returns the value of attribute blue.
5 6 7 |
# File 'lib/R3EXS/RGSS3.rb', line 5 def blue @blue end |
#green ⇒ Object
Returns the value of attribute green.
5 6 7 |
# File 'lib/R3EXS/RGSS3.rb', line 5 def green @green end |
#red ⇒ Object
Returns the value of attribute red.
5 6 7 |
# File 'lib/R3EXS/RGSS3.rb', line 5 def red @red end |
Class Method Details
Instance Method Details
#_dump(_level) ⇒ String
序列化 Color 对象
13 14 15 |
# File 'lib/R3EXS/RGSS3.rb', line 13 def _dump(_level) [@red, @green, @blue, @alpha].pack('D4') end |