Auto stash before merge of "develop" and "origin/develop"
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
package network;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
|
||||
// This class is designed to easily query and ask for responses from https://www.thecolorapi.com/.
|
||||
// Unlike some of the other networking classes, the query is much more wrapped.
|
||||
@SuppressWarnings("unused")
|
||||
public class NetworkTheColorAPI
|
||||
{
|
||||
private static final Gson jsonParser_ = new Gson();
|
||||
|
||||
private class tca_hsv
|
||||
{
|
||||
public int h; // 0-255
|
||||
public int s; // 0-100, %
|
||||
public int v; // 0-100, %
|
||||
}
|
||||
|
||||
private class tca_hsl
|
||||
{
|
||||
public int h; // 0-255
|
||||
public int s; // 0-100, %
|
||||
public int l; // 0-100, %
|
||||
}
|
||||
|
||||
private class tca_rgb
|
||||
{
|
||||
public int r; // 0-255
|
||||
public int g; // 0-255
|
||||
public int b; // 0-255
|
||||
}
|
||||
|
||||
private class tca_hex
|
||||
{
|
||||
public String clean; // format xxxxxx, with no #
|
||||
}
|
||||
|
||||
private class tca_obj
|
||||
{
|
||||
public tca_hex hex;
|
||||
public tca_rgb rgb;
|
||||
public tca_hsl hsl;
|
||||
public tca_hsv hsv;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user