public virtual void setUniformColor(bool enable, uint color, float alpha) { mColor[0] = AsColor.getRed(color) / 255.0f; mColor[1] = AsColor.getGreen(color) / 255.0f; mColor[2] = AsColor.getBlue(color) / 255.0f; mColor[3] = alpha; mUniformColor = enable; }
public static void clear(uint rgb, float alpha) { AsStarling.getContext().clear(AsColor.getRed(rgb) / 255.0f, AsColor.getGreen(rgb) / 255.0f, AsColor.getBlue(rgb) / 255.0f, alpha); }