public static ViewModel rect(Color color, float width, float height) {
return rect(new Material(color), width, height);
}
public static ViewModel sprite(Material image, float xscl, float yscl) {
Texture tex = image.getTexture();
return rect(image, tex.getWidth() * xscl, tex.getHeight() * yscl);
}