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

Method getRectLineDrawable

core/src/core/java/var3d/net/center/VGame.java:2118–2129  ·  view source on GitHub ↗
(Color color, Color out, int w, int h)

Source from the content-addressed store, hash-verified

2116
2117 // 创建钜形线条Drawable
2118 public Drawable getRectLineDrawable(Color color, Color out, int w, int h) {
2119 Pixmap pixmap = new Pixmap(w, h, Format.RGBA8888);
2120 pixmap.setColor(color);
2121 pixmap.fill();
2122 pixmap.setColor(out);
2123 pixmap.drawRectangle(0, 0, w, h);
2124 Texture colorPoint = new Texture(pixmap);
2125 colorPoint.setFilter(filter, filter);
2126 pixmap.dispose();
2127 NinePatchDrawable nine = new NinePatchDrawable(new NinePatch(colorPoint, 2, 2, 2, 2));
2128 return nine;
2129 }
2130
2131 /**
2132 * 创建输入框

Callers 1

getTextFieldWithFontMethod · 0.95

Calls 2

setColorMethod · 0.45
disposeMethod · 0.45

Tested by

no test coverage detected