Class: LiteRGSS::Tone
Overview
Class that describe tones (added/modified colors to the surface)
Direct Known Subclasses
Instance Attribute Summary collapse
-
#blue ⇒ Integer
The blue component of the tone.
-
#gray ⇒ Integer
The gray modifier of the tone (255 => grayscale).
-
#green ⇒ Integer
The green component of the tone.
-
#red ⇒ Integer
The red component of the tone.
Class Method Summary collapse
-
.new(red, green, blue, gray = 0)
Create a new tone.
Instance Method Summary collapse
-
#inspect ⇒ String
Convert the tone to a string that can be shown to the user.
-
#set(red, green = nil, blue = nil, gray = nil) ⇒ self
Set the tone parameters.
-
#to_s ⇒ String
Convert the tone to a string that can be shown to the user.
Instance Attribute Details
#blue ⇒ Integer
Returns The blue component of the tone.
95 96 97 |
# File 'LiteRGSS.rb.yard.rb', line 95 def blue @blue end |
#gray ⇒ Integer
Returns The gray modifier of the tone (255 => grayscale).
97 98 99 |
# File 'LiteRGSS.rb.yard.rb', line 97 def gray @gray end |
#green ⇒ Integer
Returns The green component of the tone.
93 94 95 |
# File 'LiteRGSS.rb.yard.rb', line 93 def green @green end |
#red ⇒ Integer
Returns The red component of the tone.
91 92 93 |
# File 'LiteRGSS.rb.yard.rb', line 91 def red @red end |
Class Method Details
.new(red, green, blue, gray = 0)
Create a new tone
103 104 105 |
# File 'LiteRGSS.rb.yard.rb', line 103 def self.new(red, green, blue, gray = 0) end |
Instance Method Details
#inspect ⇒ String
Convert the tone to a string that can be shown to the user
122 123 124 |
# File 'LiteRGSS.rb.yard.rb', line 122 def inspect end |
#set(red, green = nil, blue = nil, gray = nil) ⇒ self
Set the tone parameters
112 113 114 |
# File 'LiteRGSS.rb.yard.rb', line 112 def set(red, green = nil, blue = nil, gray = nil) end |
#to_s ⇒ String
Convert the tone to a string that can be shown to the user
117 118 119 |
# File 'LiteRGSS.rb.yard.rb', line 117 def to_s end |