Class: Viewport::WithToneAndColors::Tone

Inherits:
LiteRGSS::Tone show all
Defined in:
docs/0_Dependencies.rb

Overview

Extended class of Tone allowing setters to port back values to the shader and its tied entity

Instance Attribute Summary

Attributes inherited from LiteRGSS::Tone

#blue, #gray, #green, #red

Instance Method Summary collapse

Methods inherited from LiteRGSS::Tone

#inspect, new, #to_s

Constructor Details

#initialize(viewport, r, g, b, g2) ⇒ Tone

Create a new Tied Tone

Parameters:

  • viewport (Viewport, Sprite)

    element on which the tone is tied

  • r (Integer)

    red color

  • g (Integer)

    green color

  • b (Integer)

    blue color

  • g2 (Integer)

    gray factor



1195
1196
# File 'docs/0_Dependencies.rb', line 1195

def initialize(viewport, r, g, b, g2)
end

Instance Method Details

#blue=(v)

Set the blue value

Parameters:

  • v (Integer)


1211
1212
# File 'docs/0_Dependencies.rb', line 1211

def blue=(v)
end

#gray=(v)

Set the gray value

Parameters:

  • v (Integer)


1215
1216
# File 'docs/0_Dependencies.rb', line 1215

def gray=(v)
end

#green=(v)

Set the green value

Parameters:

  • v (Integer)


1207
1208
# File 'docs/0_Dependencies.rb', line 1207

def green=(v)
end

#red=(v)

Set the red value

Parameters:

  • v (Integer)


1203
1204
# File 'docs/0_Dependencies.rb', line 1203

def red=(v)
end

#set(*args)

Set the attribute (according to how it works in normal class)

Parameters:

  • args (Array<Integer>)


1199
1200
# File 'docs/0_Dependencies.rb', line 1199

def set(*args)
end