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



1230
1231
# File 'docs/0_Dependencies.rb', line 1230

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

Instance Method Details

#alpha=(v)

Set the alpha value

Parameters:

  • v (Integer)


1250
1251
# File 'docs/0_Dependencies.rb', line 1250

def alpha=(v)
end

#blue=(v)

Set the blue value

Parameters:

  • v (Integer)


1246
1247
# File 'docs/0_Dependencies.rb', line 1246

def blue=(v)
end

#green=(v)

Set the green value

Parameters:

  • v (Integer)


1242
1243
# File 'docs/0_Dependencies.rb', line 1242

def green=(v)
end

#red=(v)

Set the red value

Parameters:

  • v (Integer)


1238
1239
# File 'docs/0_Dependencies.rb', line 1238

def red=(v)
end

#set(*args)

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

Parameters:

  • args (Array<Integer>)


1234
1235
# File 'docs/0_Dependencies.rb', line 1234

def set(*args)
end