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

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

Introduction

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

Prototype

Color OLIVE

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

Click Source Link

Usage

From source file:com.hindelid.ld.thirtyfour.HUDDisplay.java

License:Apache License

public boolean renderGameOver(int aPoints) {
    if (aPoints > mHighScore) {
        mHighScore = aPoints;/*from   www.  j  a v  a 2 s .c  o  m*/
    }
    mHUDCamera.update();
    mBatch.setProjectionMatrix(mHUDCamera.combined);
    if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {
        mCounter = 49;
    }
    if (mCounter < 50) {
        mCounter--;
    }
    mShapeRenderer.begin(ShapeRenderer.ShapeType.Filled);
    mShapeRenderer.setColor(Color.BLACK);
    mShapeRenderer.rect(-2f, 0f, 130f, 40f);
    mShapeRenderer.end();

    mBatch.begin();
    if (mCounter >= 0) {
        mFont.getData().setScale(4f + 10f / (mCounter + 1f));
    } else {
        mFont.getData().setScale(4f);
    }
    mFont.draw(mBatch, "game over", 60f, 240f);
    mFont.getData().setScale(2f);
    mFont.draw(mBatch, "points:" + aPoints, 120f, 160f);
    mFont.getData().setScale(1f);
    mFont.setColor(Color.OLIVE);
    mFont.draw(mBatch, "made by chrizdekok", 0f, 40f);
    mFont.draw(mBatch, "www.hindelid.com", 0f, 20f);
    mFont.setColor(Color.RED);
    mBatch.end();

    return mCounter <= 0;
}

From source file:com.thetruthbeyond.botmaker.gui.tabs.teachtab.VariabTab.java

License:Open Source License

private LabelConfiguration configureLowPriorityLabel() {
    LabelConfiguration configuration = new LabelConfiguration();

    configuration.area.setX(area.getX() + LABEL_LOW_X_PARAMETER * area.getW());
    configuration.area.setW(LABEL_LOW_W_PARAMETER * area.getW());

    configuration.color = Color.OLIVE;
    configuration.fontname = FontType.GUI_FONT;
    configuration.label = "Low priority";

    return configuration;
}

From source file:com.thetruthbeyond.botmaker.gui.tabs.teachtab.VariabTab.java

License:Open Source License

private LabelConfiguration configureHighPriorityLabel() {
    LabelConfiguration configuration = new LabelConfiguration();

    configuration.area.setX(area.getX() + LABEL_HIGH_X_PARAMETER * area.getW());
    configuration.area.setW(LABEL_HIGH_W_PARAMETER * area.getW());

    configuration.color = Color.OLIVE;
    configuration.fontname = FontType.GUI_FONT;
    configuration.label = "High priority";

    return configuration;
}

From source file:com.thetruthbeyond.gui.objects.controllers.textfield.decorators.PasswordTextField.java

License:Open Source License

@Override
public void draw(SmartSpriteBatch batch) {
    drawBackground(batch);/*from ww  w  .j  a v a 2  s  .co m*/

    Color olive = Color.OLIVE;
    olive.a = batch.getColor().a;

    getFont().setColor(olive);
    getFont().draw(batch, hidden, getInputX() + getPadding(), getInputY() + (int) (1.5 * getPadding()));

    olive.a = 1.0f;
}

From source file:com.thetruthbeyond.gui.objects.tabs.overtabs.operations.ExecuteCodeTab.java

License:Open Source License

private LabelConfiguration configureUserLabel() {
    LabelConfiguration configuration = new LabelConfiguration();

    configuration.area.setX(area.getX() + LABEL_USER_X_PARAMETER * area.getW());
    configuration.area.setW(LABEL_USER_W_PARAMETER * area.getW());

    configuration.color = Color.OLIVE;
    configuration.fontname = FontType.GUI_FONT;
    configuration.label = "change chat user";

    return configuration;
}

From source file:com.thetruthbeyond.gui.objects.tabs.overtabs.operations.ExecuteCodeTab.java

License:Open Source License

private LabelConfiguration configureTopicLabel() {
    LabelConfiguration configuration = new LabelConfiguration();

    configuration.area.setX(area.getX() + LABEL_TOPIC_X_PARAMETER * area.getW());
    configuration.area.setW(LABEL_TOPIC_W_PARAMETER * area.getW());

    configuration.color = Color.OLIVE;
    configuration.fontname = FontType.GUI_FONT;
    configuration.label = "change chat topic";

    return configuration;
}

From source file:non.plugins.graphics.java

public Color color(String name) {
    if (name.startsWith("#"))
        return Color.valueOf(name.replace("#", ""));
    if ("clear".equalsIgnoreCase(name))
        return Color.CLEAR;
    else if ("white".equalsIgnoreCase(name))
        return Color.WHITE;
    else if ("black".equalsIgnoreCase(name))
        return Color.BLACK;
    else if ("red".equalsIgnoreCase(name))
        return Color.RED;
    else if ("green".equalsIgnoreCase(name))
        return Color.GREEN;
    else if ("blue".equalsIgnoreCase(name))
        return Color.BLUE;
    else if ("lightgray".equalsIgnoreCase(name))
        return Color.LIGHT_GRAY;
    else if ("gray".equalsIgnoreCase(name))
        return Color.GRAY;
    else if ("darkgray".equalsIgnoreCase(name))
        return Color.DARK_GRAY;
    else if ("pink".equalsIgnoreCase(name))
        return Color.PINK;
    else if ("orange".equalsIgnoreCase(name))
        return Color.ORANGE;
    else if ("yellow".equalsIgnoreCase(name))
        return Color.YELLOW;
    else if ("magenta".equalsIgnoreCase(name))
        return Color.MAGENTA;
    else if ("cyan".equalsIgnoreCase(name))
        return Color.CYAN;
    else if ("olive".equalsIgnoreCase(name))
        return Color.OLIVE;
    else if ("purple".equalsIgnoreCase(name))
        return Color.PURPLE;
    else if ("maroon".equalsIgnoreCase(name))
        return Color.MAROON;
    else if ("teal".equalsIgnoreCase(name))
        return Color.TEAL;
    else if ("navy".equalsIgnoreCase(name))
        return Color.NAVY;
    return Color.CLEAR;
}