Table of Contents

Class ShaderPrograms.ColorfulTextShaderProgram

Namespace
Lime
Assembly
Lime.dll

Colorizes SimpleText's or RichText's grayscale font.

public class ShaderPrograms.ColorfulTextShaderProgram : ShaderProgram
Inheritance
ShaderPrograms.ColorfulTextShaderProgram
Inherited Members

Remarks

To apply this shader you need:

  1. Data/Fonts/GradientMap.png file with size of 256x256 and ARGB8 compression.
  2. Use Tag field of SimpleText or TextStyle to specify color row from this file.

Constructors

ColorfulTextShaderProgram()

public ColorfulTextShaderProgram()

Fields

GradientMapTextureSize

public const int GradientMapTextureSize = 256

Field Value

int

Properties

GradientRampTexture

public static ITexture GradientRampTexture { get; }

Property Value

ITexture

Methods

GetInstance()

public static ShaderPrograms.ColorfulTextShaderProgram GetInstance()

Returns

ShaderPrograms.ColorfulTextShaderProgram

StyleIndexToColorIndex(int)

public static float StyleIndexToColorIndex(int styleIndex)

Parameters

styleIndex int

Returns

float