Class: Viewport::WithToneAndColors::Tone

Inherits:
LiteRGSS::Tone show all
Defined in:
docs/00000_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



621
622
# File 'docs/00000_Dependencies.rb', line 621

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

Instance Method Details

#blue=(v)

Set the blue value

Parameters:

  • v (Integer)


637
638
# File 'docs/00000_Dependencies.rb', line 637

def blue=(v)
end

#gray=(v)

Set the gray value

Parameters:

  • v (Integer)


641
642
# File 'docs/00000_Dependencies.rb', line 641

def gray=(v)
end

#green=(v)

Set the green value

Parameters:

  • v (Integer)


633
634
# File 'docs/00000_Dependencies.rb', line 633

def green=(v)
end

#red=(v)

Set the red value

Parameters:

  • v (Integer)


629
630
# File 'docs/00000_Dependencies.rb', line 629

def red=(v)
end

#set(*args)

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

Parameters:

  • args (Array<Integer>)


625
626
# File 'docs/00000_Dependencies.rb', line 625

def set(*args)
end