XenevaOS
Loading...
Searching...
No Matches
Functions
color.cpp File Reference
#include "color.h"
#include "draw.h"
#include <math.h>
#include <stdlib.h>
Include dependency graph for color.cpp:

Functions

uint32_t ChColorAlphaBlend (uint32_t dst, uint32_t src, double opacity)
 
uint32_t ChColorAlphaBlend2 (uint32_t color1, uint32_t color2)
 
uint32_t make_col (uint8_t red, uint8_t green, uint8_t blue)
 
uint32_t make_col_a (uint8_t red, uint8_t green, uint8_t blue, uint8_t a)
 
void ChColorDrawVerticalGradient (ChCanvas *canv, int x, int y, int w, int h, uint32_t color1, uint32_t color2)
 
void ChColorDrawHorizontalGradient (ChCanvas *canv, int x, int y, int w, int h, uint32_t color1, uint32_t color2)
 
double clamp (double x, double upper, double lower)
 
uint32_t ChColorRGBAtoBGRA (uint32_t col)
 

Function Documentation

◆ ChColorAlphaBlend()

uint32_t ChColorAlphaBlend ( uint32_t  dst,
uint32_t  src,
double  opacity 
)

◆ ChColorAlphaBlend2()

uint32_t ChColorAlphaBlend2 ( uint32_t  color1,
uint32_t  color2 
)

◆ ChColorDrawHorizontalGradient()

void ChColorDrawHorizontalGradient ( ChCanvas canv,
int  x,
int  y,
int  w,
int  h,
uint32_t  color1,
uint32_t  color2 
)

◆ ChColorDrawVerticalGradient()

XE_LIB void ChColorDrawVerticalGradient ( ChCanvas canv,
int  x,
int  y,
int  w,
int  h,
uint32_t  color1,
uint32_t  color2 
)

◆ ChColorRGBAtoBGRA()

uint32_t ChColorRGBAtoBGRA ( uint32_t  col)

◆ clamp()

double clamp ( double  x,
double  upper,
double  lower 
)

◆ make_col()

uint32_t make_col ( uint8_t  red,
uint8_t  green,
uint8_t  blue 
)

◆ make_col_a()

uint32_t make_col_a ( uint8_t  red,
uint8_t  green,
uint8_t  blue,
uint8_t  a 
)