Example usage for com.badlogic.gdx.graphics.g2d BitmapFontCache setColor

List of usage examples for com.badlogic.gdx.graphics.g2d BitmapFontCache setColor

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics.g2d BitmapFontCache setColor.

Prototype

public void setColor(float color) 

Source Link

Document

Sets the color of subsequently added text.

Usage

From source file:com.ridiculousRPG.ui.DisplayPlainTextService.java

License:Apache License

private BitmapFontCache createMsg(CharSequence text, float color, float x, float y, float wrapWidth) {
    BitmapFontCache bfc = fontCachePool.obtain(font);
    bfc.setColor(color);
    if (wrapWidth > 0f)
        bfc.setWrappedText(text, x, y, wrapWidth);
    else/*from  ww  w. j av a  2s  .c o m*/
        bfc.setMultiLineText(text, x, y);
    return bfc;
}