mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-16 10:04:30 +01:00
add library json
This commit is contained in:
@@ -41,13 +41,11 @@ const PIXEL_FP PIXEL_FNCS[] = {
|
||||
},
|
||||
/*
|
||||
COLOR_MODE
|
||||
Input: rgb hex color without #
|
||||
parses the hex string to r,g,b and sets all pixels accordingly
|
||||
sets the color from an rgb int
|
||||
*/
|
||||
[](NeoPattern* pixels, const char *color){
|
||||
int r, g, b;
|
||||
sscanf(color, "%02x%02x%02x", &r, &g, &b);
|
||||
pixels->ColorSet(pixels->Color(r,g,b));
|
||||
pixels->ActivePattern = NONE;
|
||||
pixels->ColorSet(atoi(color));
|
||||
},
|
||||
/*
|
||||
PATTERN_MODE
|
||||
|
||||
Reference in New Issue
Block a user