MCPcopy Create free account
hub / github.com/Var3D/var3dframe / getRectColorDrawable

Method getRectColorDrawable

core/src/core/java/var3d/net/center/VGame.java:1859–1864  ·  view source on GitHub ↗
(float width,
                                                      float height, Color color)

Source from the content-addressed store, hash-verified

1857 }
1858
1859 public TextureRegionDrawable getRectColorDrawable(float width,
1860 float height, Color color) {
1861 TextureRegion tex = new TextureRegion(getColorPointTexture(color));
1862 tex.setRegion(0, 0, width, height);
1863 return new TextureRegionDrawable(tex);
1864 }
1865
1866 /**
1867 * 获取TextureAtlas

Callers 5

getTextFieldWithFontMethod · 0.95
getTextButtonMethod · 0.95
getSelectBoxMethod · 0.95
getScrollPaneMethod · 0.95
initMethod · 0.80

Calls 1

getColorPointTextureMethod · 0.95

Tested by

no test coverage detected