Texture

Introduction

The Texture color operation results in an object being drawn with its unmodified texture. Color values (red, green and blue) on the IColorable are completely ignored, unless the object has no texture. The Texture color operation is the default color operation for FlatRedBall types like Sprite and Text.

Code Example

Texture color operation can be assigned on any IColorable, such as Sprite:

var sprite = SpriteManager.AddSprite(SpriteTexture);
sprite.ColorOperation = ColorOperation.Texture;

Color Values

As mentioned above, the Red, Green, and Blue values have no impact on an object which uses the Texture color operation.

Last updated