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

Method drawChromatic

forge-gui-mobile/src/forge/Graphics.java:1085–1103  ·  view source on GitHub ↗
(TextureRegion image, float x, float y, float w, float h, Float time)

Source from the content-addressed store, hash-verified

1083 }
1084
1085 public void drawChromatic(TextureRegion image, float x, float y, float w, float h, Float time) {
1086 if (image == null)
1087 return;
1088 if (time != null) {
1089 batch.end();
1090 shaderChromaticAbberation.bind();
1091 shaderChromaticAbberation.setUniformf("u_time", time);
1092 batch.setShader(shaderChromaticAbberation);
1093 batch.begin();
1094 //draw
1095 batch.draw(image, x, y, w, h);
1096 //reset
1097 batch.end();
1098 batch.setShader(null);
1099 batch.begin();
1100 } else {
1101 drawImage(image, x, y, w, h);
1102 }
1103 }
1104
1105 public void drawRipple(FImage image, float x, float y, float w, float h, Float amount) {
1106 if (image == null)

Callers

nothing calls this directly

Calls 4

drawImageMethod · 0.95
drawMethod · 0.65
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected