52double clamp_d(
double value,
double min,
double max);
61float clamp_f(
float value,
float min,
float max);
79double lerp_d(
double a,
double b,
double t);
88float lerp_f(
float a,
float b,
float t);
double lerp_d(double a, double b, double t)
Linearly interpolates between two values.
void rgb_to_hsv(int rgb, double *h, double *s, double *v)
Converts an RGB color to HSV.
int lerp_i(int a, int b, double t)
Linearly interpolates between two values.
float lerp_f(float a, float b, float t)
Linearly interpolates between two values.
int hsv_to_rgb(double h, double s, double v)
Converts an HSV color to RGB.
int lerp_color(int rgb1, int rgb2, double t)
Linearly interpolates between two colors.
float clamp_f(float value, float min, float max)
Clamps a value between a minimum and maximum.
unsigned long currentTimeMillis()
Gets the current time in milliseconds.
void sleepMillis(unsigned long millis)
Pauses the program for a specified number of milliseconds.
int clamp_i(int value, int min, int max)
Clamps a value between a minimum and maximum.
void sleepNanos(unsigned long long nanos)
Pauses the program for a specified number of nanoseconds.
double clamp_d(double value, double min, double max)
Clamps a value between a minimum and maximum.
unsigned long long currentTimeNanos()
Gets the current time in nanoseconds.