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, #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



1342
1343
# File 'docs/0_Dependencies.rb', line 1342

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

Instance Method Details

#blue=(v)

Set the blue value

Parameters:

  • v (Integer)


1358
1359
# File 'docs/0_Dependencies.rb', line 1358

def blue=(v)
end

#gray=(v)

Set the gray value

Parameters:

  • v (Integer)


1362
1363
# File 'docs/0_Dependencies.rb', line 1362

def gray=(v)
end

#green=(v)

Set the green value

Parameters:

  • v (Integer)


1354
1355
# File 'docs/0_Dependencies.rb', line 1354

def green=(v)
end

#red=(v)

Set the red value

Parameters:

  • v (Integer)


1350
1351
# File 'docs/0_Dependencies.rb', line 1350

def red=(v)
end

#set(*args)

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

Parameters:

  • args (Array<Integer>)


1346
1347
# File 'docs/0_Dependencies.rb', line 1346

def set(*args)
end