Module: Viewport::WithToneAndColors

Defined in:
scripts/00000 Dependencies/00001 LiteRGSS2/00002 Viewport.rb

Defined Under Namespace

Classes: Color, Tone

Instance Method Summary collapse

Instance Method Details

#colorColor

Color of the viewport

Returns:



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

Parameters:



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

#toneTone

Tone of the viewport

Returns:



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

Parameters:



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