public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static double |
blueFromHSL(double h,
double s,
double l) |
static int |
clampToByte(int v)
Clamp an integer to byte range
|
static JFrame |
cliskFrame(BufferedImage image) |
static double |
dhash(double x) |
static double |
dhash(double x,
double y) |
static double |
dhash(double x,
double y,
double z) |
static double |
dhash(double x,
double y,
double z,
double t) |
static Object |
execute(String script) |
static int |
getARGBQuick(int r,
int g,
int b,
int a) |
static double |
greenFromHSL(double h,
double s,
double l) |
static long |
hash(double x) |
static long |
hash(double x,
double y) |
static long |
hash(double x,
double y,
double z) |
static long |
hash(double x,
double y,
double z,
double t) |
static long |
longHash(long a) |
static void |
main(String[] args) |
static BufferedImage |
newImage(int w,
int h)
Create a new blank BufferedImage
|
static double |
redFromHSL(double h,
double s,
double l) |
static BufferedImage |
scaleImage(BufferedImage img,
int w,
int h) |
static JFrame |
show(BufferedImage image) |
static JFrame |
show(String script)
Shows an image generated from the given script in a new clisk JFrame
|
static int |
toARGB(double r,
double g,
double b) |
static int |
toARGB(double r,
double g,
double b,
double a) |
public static BufferedImage newImage(int w, int h)
w - h - public static BufferedImage scaleImage(BufferedImage img, int w, int h)
public static int clampToByte(int v)
public static int toARGB(double r,
double g,
double b)
public static int toARGB(double r,
double g,
double b,
double a)
public static int getARGBQuick(int r,
int g,
int b,
int a)
public static JFrame cliskFrame(BufferedImage image)
public static JFrame show(BufferedImage image)
public static JFrame show(String script)
script - public static final long longHash(long a)
public static final long hash(double x)
public static final long hash(double x,
double y)
public static final long hash(double x,
double y,
double z)
public static final long hash(double x,
double y,
double z,
double t)
public static final double dhash(double x)
public static final double dhash(double x,
double y)
public static final double dhash(double x,
double y,
double z)
public static final double dhash(double x,
double y,
double z,
double t)
public static double redFromHSL(double h,
double s,
double l)
public static double greenFromHSL(double h,
double s,
double l)
public static double blueFromHSL(double h,
double s,
double l)
public static void main(String[] args)
Copyright © 2014. All Rights Reserved.