Class: Sprite::WithColor
- Inherits:
-
Sprite
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- Sprite::WithColor
- Defined in:
- docs/0_Dependencies.rb
Overview
Define a sprite that mix with a color
Instance Attribute Summary
Attributes inherited from LiteRGSS::ShaderedSprite
Attributes inherited from LiteRGSS::Sprite
#__index__, #angle, #bitmap, #height, #mirror, #opacity, #ox, #oy, #src_rect, #viewport, #visible, #width, #x, #y, #z, #zoom, #zoom_x, #zoom_y
Instance Method Summary collapse
-
#color=(array) ⇒ self
(also: #set_color)
Set the Sprite color.
-
#initialize(viewport = nil) ⇒ WithColor
constructor
Create a new Sprite::WithColor.
Methods inherited from Sprite
#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords, #update
Methods inherited from LiteRGSS::Sprite
new, #set_origin, #set_position
Methods inherited from LiteRGSS::Disposable
Constructor Details
#initialize(viewport = nil) ⇒ WithColor
Create a new Sprite::WithColor
1338 1339 |
# File 'docs/0_Dependencies.rb', line 1338 def initialize( = nil) end |
Instance Method Details
#color=(array) ⇒ self Also known as: set_color
Set the Sprite color
1343 1344 |
# File 'docs/0_Dependencies.rb', line 1343 def color=(array) end |