Module: Viewport::WithToneAndColors
- Defined in:
- scripts/00000 Dependencies/00001 LiteRGSS2/00002 Viewport.rb
Defined Under Namespace
Instance Method Summary collapse
-
#color ⇒ Color
Color of the viewport.
-
#color=(value)
Set color of the viewport.
-
#tone ⇒ Tone
Tone of the viewport.
-
#tone=(value)
Set the tone.
Instance Method Details
#color ⇒ Color
Color of the viewport
224 225 226 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/00002 Viewport.rb', line 224 def color @color ||= Color.new(self, 0, 0, 0, 0) end |
#color=(value)
Set color of the viewport
218 219 220 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/00002 Viewport.rb', line 218 def color=(value) color.set(value.red, value.green, value.blue, value.alpha) end |
#tone ⇒ Tone
Tone of the viewport
236 237 238 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/00002 Viewport.rb', line 236 def tone @tone ||= Tone.new(self, 0, 0, 0, 0) end |
#tone=(value)
Set the tone
230 231 232 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/00002 Viewport.rb', line 230 def tone=(value) tone.set(value.red, value.green, value.blue, value.gray) end |