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

Method draw

forge-gui-mobile/src/forge/assets/FRotatedImage.java:52–66  ·  view source on GitHub ↗
(Graphics g, float x, float y, float w, float h)

Source from the content-addressed store, hash-verified

50 }
51
52 @Override
53 public void draw(Graphics g, float x, float y, float w, float h) {
54 float originX, originY, rotation;
55 if (clockwise) {
56 originX = x + w / 2;
57 originY = y + w / 2;
58 rotation = -90;
59 }
60 else {
61 originX = x + h / 2;
62 originY = y + h / 2;
63 rotation = 90;
64 }
65 g.drawRotatedImage(texture, x, y, h, w, originX, originY, srcX, srcY, srcWidth, srcHeight, rotation);
66 }
67}

Callers

nothing calls this directly

Calls 1

drawRotatedImageMethod · 0.80

Tested by

no test coverage detected