List of usage examples for com.badlogic.gdx.graphics Color WHITE
Color WHITE
To view the source code for com.badlogic.gdx.graphics Color WHITE.
Click Source Link
From source file:com.a2client.gui.GUI_Memo.java
License:Open Source License
public void UpdateLines() { render_lines.clear();//from w w w.j a va2 s. c om for (String l : lines) { WordWrap ww = new WordWrap(l, WorkRect().w, "default"); for (int i = 0; i < ww.Lines.size(); i++) { render_lines.add(new MemoLine(ww.Lines.get(i), "default", Color.WHITE)); } } UpdateFullSize(); }
From source file:com.a2client.gui.Skin.java
License:Open Source License
public void Draw(String element_name, int x, int y, int w, int h, int skin_state) { Draw(element_name, x, y, w, h, skin_state, Color.WHITE); }
From source file:com.a2client.gui.Skin.java
License:Open Source License
public void Draw(String element_name, int x, int y, int w, int h) { Draw(element_name, x, y, w, h, StateDefault, Color.WHITE); }
From source file:com.a2client.gui.Skin.java
License:Open Source License
public void Draw(String element_name, Vec2i c, Vec2i sz) { Draw(element_name, c.x, c.y, sz.x, sz.y, StateDefault, Color.WHITE); }
From source file:com.a2client.gui.Skin.java
License:Open Source License
public void Draw(String element_name, int x, int y) { Draw(element_name, x, y, -1, -1, StateDefault, Color.WHITE); }
From source file:com.a2client.gui.Skin.java
License:Open Source License
public void Draw(String element_name, Vec2i c) { Draw(element_name, c.x, c.y, -1, -1, StateDefault, Color.WHITE); }
From source file:com.a2client.gui.test.gui_drag_container.java
License:Open Source License
public void DoRender() { if (drag_above_me) GUIGDX.FillRect(abs_pos, size, Color.YELLOW); else if (have_some) GUIGDX.FillRect(abs_pos, size, Color.RED); else// ww w . j a va 2 s.c o m GUIGDX.FillRect(abs_pos, size, Color.WHITE); }
From source file:com.a2client.gui.utils.SimpleHint.java
License:Open Source License
static public void Render(int x, int y, int w, int h, String s) { int cy = 0;// w w w .j a v a 2 s . c om String[] sl = s.split("%n"); for (String ss : sl) { GUIGDX.Text(hint_font, x + 4, y + cy, w, h, Align.Align_Left + Align.Align_Top, ss, Color.WHITE); cy += GUIGDX.getTextHeight(hint_font, ss) + 5; } }
From source file:com.agateau.pixelwheels.bonus.Missile.java
License:Open Source License
private void drawTarget(Batch batch) { if (mTarget == null) { return;//from ww w. j ava 2s . co m } batch.setColor(mStatus == Status.LOCKED ? LOCKED_COLOR : TARGETED_COLOR); TextureRegion region = mAssets.target; float w = Constants.UNIT_FOR_PIXEL * region.getRegionWidth(); float h = Constants.UNIT_FOR_PIXEL * region.getRegionHeight(); batch.draw(region, mTarget.getX() - w / 2, mTarget.getY() - h / 2, w, h); batch.setColor(Color.WHITE); }
From source file:com.agateau.pixelwheels.racer.VehicleRenderer.java
License:Open Source License
@Override public void draw(Batch batch, ZLevel zLevel) { mBodyRegionDrawer.setBatch(batch);//from w w w . j a v a 2 s . c o m mBodyRegionDrawer.setScale(mVehicle.getZ() + 1); mTime += Gdx.app.getGraphics().getDeltaTime(); if (zLevel == ZLevel.GROUND) { for (Vehicle.WheelInfo info : mVehicle.getWheelInfos()) { mSkidmarksRenderer.draw(batch, info.wheel.getSkidmarks()); } // Only draw splash and shadow if we are not falling if (!mVehicle.isFalling()) { for (Vehicle.WheelInfo info : mVehicle.getWheelInfos()) { if (info.wheel.getMaterial().isWater()) { mBodyRegionDrawer.draw(info.wheel.getBody(), mAssets.splash.getKeyFrame(mTime, true)); } } mBodyRegionDrawer.drawShadow(mVehicle.getBody(), mVehicle.getRegion()); } return; } ZLevel wantedZIndex = mVehicle.isFlying() ? ZLevel.FLYING : ZLevel.VEHICLES; if (zLevel != wantedZIndex) { return; } if (mVehicle.isFalling()) { float k = MathUtils.clamp(1 + mVehicle.getZ() * 10, 0, 1); // k = 0 fully immersed, k = 1 not immersed mBatchColor.set(IMMERSED_COLOR); mBatchColor.lerp(Color.WHITE, k); batch.setColor(mBatchColor); } else { // Do not draw the wheels when falling: when the body is painted with alpha < 1 the wheels are visible // through it and it looks ugly for (Vehicle.WheelInfo info : mVehicle.getWheelInfos()) { mBodyRegionDrawer.draw(info.wheel.getBody(), info.wheel.getRegion()); } } mBodyRegionDrawer.draw(mVehicle.getBody(), mVehicle.getRegion()); if (mVehicle.getTurboTime() >= 0) { drawTurbo(batch); } for (Renderer renderer : mRenderers) { renderer.draw(batch, zLevel); } if (mVehicle.isFalling()) { batch.setColor(Color.WHITE); } }