Example usage for com.badlogic.gdx.graphics Color BLACK

List of usage examples for com.badlogic.gdx.graphics Color BLACK

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics Color BLACK.

Prototype

Color BLACK

To view the source code for com.badlogic.gdx.graphics Color BLACK.

Click Source Link

Usage

From source file:YOGOSec.core.gui.Button.java

License:LGPL

@Override
public void onGUIResized(int width, int height) {
    super.onGUIResized(width, height);
    this.pixmap.dispose();
    this.pixmap = new YUpPixmap(width, height, Pixmap.Format.RGBA8888);
    pixmap.setColor(Color.RED);/*  w  ww . j  av  a2s .com*/
    pixmap.fillRectangle(this.bounds.getX().intValue(), this.bounds.getY().intValue(),
            this.bounds.getWidth().intValue(), this.bounds.getHeight().intValue());
    pixmap.setColor(Color.BLACK);
}