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

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

Introduction

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

Prototype

public int toIntBits() 

Source Link

Document

Packs the color components into a 32-bit integer with the format ABGR.

Usage

From source file:com.anythingmachine.gdxwrapper.ColorWrap.java

License:Apache License

@Override
public boolean equals(Object o) {
    if (this == o)
        return true;
    if (o == null || getClass() != o.getClass())
        return false;
    Color color = (Color) o;
    return toIntBits() == color.toIntBits();
}

From source file:de.longri.cachebox3.utils.HSV_Color.java

License:Open Source License

@Override
public boolean equals(Object o) {
    if (this == o)
        return true;
    if (o == null || (getClass() != o.getClass() && !(o instanceof Color)))
        return false;
    Color color = (Color) o;
    return toIntBits() == color.toIntBits();
}

From source file:de.longri.cachebox3.utils.HSV_Color.java

License:Open Source License

public static Color colorMatrixManipulation(Color color, float[] nightColorMatrix) {
    return new HSV_Color(colorMatrixManipulation(color.toIntBits(), nightColorMatrix));
}