MCPcopy Create free account
hub / github.com/Card-Forge/forge / draw

Method draw

forge-gui-mobile/src/forge/screens/FScreen.java:340–349  ·  view source on GitHub ↗
(Graphics g, float x, float y, float w, float h)

Source from the content-addressed store, hash-verified

338 }
339
340 @Override
341 public void draw(Graphics g, float x, float y, float w, float h) {
342 float xMid = x + w * 0.4f;
343 float yMid = y + h / 2;
344 float offsetX = h / 8;
345 float offsetY = w / 4;
346
347 g.drawLine(THICKNESS, getColor(), xMid + offsetX, yMid - offsetY, xMid - offsetX, yMid + 1);
348 g.drawLine(THICKNESS, getColor(), xMid - offsetX, yMid - 1, xMid + offsetX, yMid + offsetY);
349 }
350 }
351
352 protected static class MenuIcon implements FImage {

Callers

nothing calls this directly

Calls 2

getColorMethod · 0.95
drawLineMethod · 0.80

Tested by

no test coverage detected