Class: Sprite::WithColor

Inherits:
Sprite
  • Object
show all
Defined in:
docs/0_Dependencies.rb

Overview

Define a sprite that mix with a color

Instance Method Summary collapse

Constructor Details

#initialize(viewport = nil) ⇒ WithColor

Create a new Sprite::WithColor

Parameters:



1485
1486
# File 'docs/0_Dependencies.rb', line 1485

def initialize(viewport = nil)
end

Instance Method Details

#color=(array) ⇒ self Also known as: set_color

Set the Sprite color

Parameters:

  • array (Array(Numeric, Numeric, Numeric, Numeric), LiteRGSS::Color) —

    the color (values : 0~1.0)

Returns:

  • (self)


1490
1491
# File 'docs/0_Dependencies.rb', line 1490

def color=(array)
end