Class: Viewport::WithToneAndColors::Color

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

Overview

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

Instance Attribute Summary

Attributes inherited from LiteRGSS::Color

#alpha, #blue, #green, #red

Instance Method Summary collapse

Methods inherited from LiteRGSS::Color

#inspect, #to_s

Constructor Details

#initialize(viewport, r, g, b, a) ⇒ Color

Create a new Tied Color

Parameters:

  • viewport (Viewport, Sprite) —

    element on which the color is tied

  • r (Integer) —

    red color

  • g (Integer) —

    green color

  • b (Integer) —

    blue color

  • a (Integer) —

    alpha factor



1377
1378
# File 'docs/0_Dependencies.rb', line 1377

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

Instance Method Details

#alpha=(v)

Set the alpha value

Parameters:

  • v (Integer)


1397
1398
# File 'docs/0_Dependencies.rb', line 1397

def alpha=(v)
end

#blue=(v)

Set the blue value

Parameters:

  • v (Integer)


1393
1394
# File 'docs/0_Dependencies.rb', line 1393

def blue=(v)
end

#green=(v)

Set the green value

Parameters:

  • v (Integer)


1389
1390
# File 'docs/0_Dependencies.rb', line 1389

def green=(v)
end

#red=(v)

Set the red value

Parameters:

  • v (Integer)


1385
1386
# File 'docs/0_Dependencies.rb', line 1385

def red=(v)
end

#set(*args)

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

Parameters:

  • args (Array<Integer>)


1381
1382
# File 'docs/0_Dependencies.rb', line 1381

def set(*args)
end