Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5ca021a

Browse files
colormaps
1 parent 0c862d2 commit 5ca021a

File tree

171 files changed

+6159
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+6159
-8
lines changed

‎src/eloquent/.DS_Store

0 Bytes
Binary file not shown.

‎src/eloquent/apps/telegram/bot/BaseTelegramBot.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
#pragma once
66

7+
#ifndef NO_TELEGRAM
8+
79
#include "./witnessmenow/UniversalTelegramBot.h"
810
#include "./Errors.h"
911

@@ -193,4 +195,6 @@ namespace Eloquent {
193195
};
194196
}
195197
}
196-
}
198+
}
199+
200+
#endif

‎src/eloquent/graphics/.DS_Store

6 KB
Binary file not shown.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//
2+
// Created by Simone on 18/05/2022.
3+
//
4+
5+
#pragma once
6+
#include "../../macros.h"
7+
8+
9+
namespace Eloquent {
10+
namespace Graphics {
11+
namespace Colormaps {
12+
class Accent {
13+
public:
14+
15+
/**
16+
* Convert single byte to RGB color
17+
* @param x
18+
* @param r
19+
* @param g
20+
* @param b
21+
*/
22+
void convert(uint8_t x, uint8_t *r, uint8_t *g, uint8_t *b) {
23+
*r = red[x << 2];
24+
*g = green[x << 2];
25+
*b = blue[x << 2];
26+
}
27+
28+
protected:
29+
uint8_t red[64] = {127, 127, 127, 127, 127, 127, 127, 127, 190, 190, 190, 190, 190, 190, 190, 190, 253, 253, 253, 253, 253, 253, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255, 56, 56, 56, 56, 56, 56, 56, 56, 240, 240, 240, 240, 240, 240, 240, 240, 191, 191, 191, 191, 191, 191, 191, 191, 102, 102, 102, 102, 102, 102, 102, 102};
30+
uint8_t green[64] = {201, 201, 201, 201, 201, 201, 201, 201, 174, 174, 174, 174, 174, 174, 174, 174, 192, 192, 192, 192, 192, 192, 192, 192, 255, 255, 255, 255, 255, 255, 255, 255, 108, 108, 108, 108, 108, 108, 108, 108, 2, 2, 2, 2, 2, 2, 2, 2, 91, 91, 91, 91, 91, 91, 91, 91, 102, 102, 102, 102, 102, 102, 102, 102};
31+
uint8_t blue[64] = {127, 127, 127, 127, 127, 127, 127, 127, 212, 212, 212, 212, 212, 212, 212, 212, 134, 134, 134, 134, 134, 134, 134, 134, 153, 153, 153, 153, 153, 153, 153, 153, 176, 176, 176, 176, 176, 176, 176, 176, 127, 127, 127, 127, 127, 127, 127, 127, 22, 22, 22, 22, 22, 22, 22, 22, 102, 102, 102, 102, 102, 102, 102, 102};
32+
};
33+
}
34+
}
35+
}
36+
37+
ELOQUENT_SINGLETON(Eloquent::Graphics::Colormaps::Accent accent);
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//
2+
// Created by Simone on 18/05/2022.
3+
//
4+
5+
#pragma once
6+
#include "../../macros.h"
7+
8+
9+
namespace Eloquent {
10+
namespace Graphics {
11+
namespace Colormaps {
12+
class Accent_r {
13+
public:
14+
15+
/**
16+
* Convert single byte to RGB color
17+
* @param x
18+
* @param r
19+
* @param g
20+
* @param b
21+
*/
22+
void convert(uint8_t x, uint8_t *r, uint8_t *g, uint8_t *b) {
23+
*r = red[x << 2];
24+
*g = green[x << 2];
25+
*b = blue[x << 2];
26+
}
27+
28+
protected:
29+
uint8_t red[64] = {102, 102, 102, 102, 102, 102, 102, 102, 191, 191, 191, 191, 191, 191, 191, 191, 240, 240, 240, 240, 240, 240, 240, 240, 56, 56, 56, 56, 56, 56, 56, 56, 255, 255, 255, 255, 255, 255, 255, 255, 253, 253, 253, 253, 253, 253, 253, 253, 190, 190, 190, 190, 190, 190, 190, 190, 127, 127, 127, 127, 127, 127, 127, 127};
30+
uint8_t green[64] = {102, 102, 102, 102, 102, 102, 102, 102, 91, 91, 91, 91, 91, 91, 91, 91, 2, 2, 2, 2, 2, 2, 2, 2, 108, 108, 108, 108, 108, 108, 108, 108, 255, 255, 255, 255, 255, 255, 255, 255, 192, 192, 192, 192, 192, 192, 192, 192, 174, 174, 174, 174, 174, 174, 174, 174, 201, 201, 201, 201, 201, 201, 201, 201};
31+
uint8_t blue[64] = {102, 102, 102, 102, 102, 102, 102, 102, 22, 22, 22, 22, 22, 22, 22, 22, 127, 127, 127, 127, 127, 127, 127, 127, 176, 176, 176, 176, 176, 176, 176, 176, 153, 153, 153, 153, 153, 153, 153, 153, 134, 134, 134, 134, 134, 134, 134, 134, 212, 212, 212, 212, 212, 212, 212, 212, 127, 127, 127, 127, 127, 127, 127, 127};
32+
};
33+
}
34+
}
35+
}
36+
37+
ELOQUENT_SINGLETON(Eloquent::Graphics::Colormaps::Accent_r accent_r);
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//
2+
// Created by Simone on 18/05/2022.
3+
//
4+
5+
#pragma once
6+
#include "../../macros.h"
7+
8+
9+
namespace Eloquent {
10+
namespace Graphics {
11+
namespace Colormaps {
12+
class Afmhot {
13+
public:
14+
15+
/**
16+
* Convert single byte to RGB color
17+
* @param x
18+
* @param r
19+
* @param g
20+
* @param b
21+
*/
22+
void convert(uint8_t x, uint8_t *r, uint8_t *g, uint8_t *b) {
23+
*r = red[x << 2];
24+
*g = green[x << 2];
25+
*b = blue[x << 2];
26+
}
27+
28+
protected:
29+
uint8_t red[64] = {0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 89, 97, 105, 113, 121, 129, 137, 145, 153, 161, 170, 178, 186, 194, 202, 210, 218, 226, 234, 242, 250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255};
30+
uint8_t green[64] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 10, 18, 26, 34, 42, 50, 58, 66, 74, 82, 91, 99, 107, 115, 123, 131, 139, 147, 155, 163, 172, 180, 188, 196, 204, 212, 220, 228, 236, 244, 252, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255};
31+
uint8_t blue[64] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 12, 20, 28, 36, 44, 52, 60, 68, 76, 84, 93, 101, 109, 117, 125, 133, 141, 149, 157, 165, 174, 182, 190, 198, 206, 214, 222, 230, 238, 246, 255};
32+
};
33+
}
34+
}
35+
}
36+
37+
ELOQUENT_SINGLETON(Eloquent::Graphics::Colormaps::Afmhot afmhot);
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//
2+
// Created by Simone on 18/05/2022.
3+
//
4+
5+
#pragma once
6+
#include "../../macros.h"
7+
8+
9+
namespace Eloquent {
10+
namespace Graphics {
11+
namespace Colormaps {
12+
class Afmhot_r {
13+
public:
14+
15+
/**
16+
* Convert single byte to RGB color
17+
* @param x
18+
* @param r
19+
* @param g
20+
* @param b
21+
*/
22+
void convert(uint8_t x, uint8_t *r, uint8_t *g, uint8_t *b) {
23+
*r = red[x << 2];
24+
*g = green[x << 2];
25+
*b = blue[x << 2];
26+
}
27+
28+
protected:
29+
uint8_t red[64] = {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 250, 242, 234, 226, 218, 210, 202, 194, 186, 178, 170, 161, 153, 145, 137, 129, 121, 113, 105, 97, 89, 80, 72, 64, 56, 48, 40, 32, 24, 16, 8, 0};
30+
uint8_t green[64] = {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 252, 244, 236, 228, 220, 212, 204, 196, 188, 180, 172, 163, 155, 147, 139, 131, 123, 115, 107, 99, 91, 82, 74, 66, 58, 50, 42, 34, 26, 18, 10, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
31+
uint8_t blue[64] = {255, 246, 238, 230, 222, 214, 206, 198, 190, 182, 174, 165, 157, 149, 141, 133, 125, 117, 109, 101, 93, 85, 76, 68, 60, 52, 44, 36, 28, 20, 12, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
32+
};
33+
}
34+
}
35+
}
36+
37+
ELOQUENT_SINGLETON(Eloquent::Graphics::Colormaps::Afmhot_r afmhot_r);
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//
2+
// Created by Simone on 18/05/2022.
3+
//
4+
5+
#pragma once
6+
#include "../../macros.h"
7+
8+
9+
namespace Eloquent {
10+
namespace Graphics {
11+
namespace Colormaps {
12+
class Autumn {
13+
public:
14+
15+
/**
16+
* Convert single byte to RGB color
17+
* @param x
18+
* @param r
19+
* @param g
20+
* @param b
21+
*/
22+
void convert(uint8_t x, uint8_t *r, uint8_t *g, uint8_t *b) {
23+
*r = red[x << 2];
24+
*g = green[x << 2];
25+
*b = blue[x << 2];
26+
}
27+
28+
protected:
29+
uint8_t red[64] = {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255};
30+
uint8_t green[64] = {0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 85, 89, 93, 97, 101, 105, 109, 113, 117, 121, 125, 129, 133, 137, 141, 145, 149, 153, 157, 161, 165, 170, 174, 178, 182, 186, 190, 194, 198, 202, 206, 210, 214, 218, 222, 226, 230, 234, 238, 242, 246, 250, 255};
31+
uint8_t blue[64] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
32+
};
33+
}
34+
}
35+
}
36+
37+
ELOQUENT_SINGLETON(Eloquent::Graphics::Colormaps::Autumn autumn);
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//
2+
// Created by Simone on 18/05/2022.
3+
//
4+
5+
#pragma once
6+
#include "../../macros.h"
7+
8+
9+
namespace Eloquent {
10+
namespace Graphics {
11+
namespace Colormaps {
12+
class Autumn_r {
13+
public:
14+
15+
/**
16+
* Convert single byte to RGB color
17+
* @param x
18+
* @param r
19+
* @param g
20+
* @param b
21+
*/
22+
void convert(uint8_t x, uint8_t *r, uint8_t *g, uint8_t *b) {
23+
*r = red[x << 2];
24+
*g = green[x << 2];
25+
*b = blue[x << 2];
26+
}
27+
28+
protected:
29+
uint8_t red[64] = {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255};
30+
uint8_t green[64] = {255, 250, 246, 242, 238, 234, 230, 226, 222, 218, 214, 210, 206, 202, 198, 194, 190, 186, 182, 178, 174, 170, 165, 161, 157, 153, 149, 145, 141, 137, 133, 129, 125, 121, 117, 113, 109, 105, 101, 97, 93, 89, 85, 80, 76, 72, 68, 64, 60, 56, 52, 48, 44, 40, 36, 32, 28, 24, 20, 16, 12, 8, 4, 0};
31+
uint8_t blue[64] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
32+
};
33+
}
34+
}
35+
}
36+
37+
ELOQUENT_SINGLETON(Eloquent::Graphics::Colormaps::Autumn_r autumn_r);
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//
2+
// Created by Simone on 18/05/2022.
3+
//
4+
5+
#pragma once
6+
#include "../../macros.h"
7+
8+
9+
namespace Eloquent {
10+
namespace Graphics {
11+
namespace Colormaps {
12+
class Binary {
13+
public:
14+
15+
/**
16+
* Convert single byte to RGB color
17+
* @param x
18+
* @param r
19+
* @param g
20+
* @param b
21+
*/
22+
void convert(uint8_t x, uint8_t *r, uint8_t *g, uint8_t *b) {
23+
*r = red[x << 2];
24+
*g = green[x << 2];
25+
*b = blue[x << 2];
26+
}
27+
28+
protected:
29+
uint8_t red[64] = {255, 250, 246, 242, 238, 234, 230, 226, 222, 218, 214, 210, 206, 202, 198, 194, 190, 186, 182, 178, 174, 170, 165, 161, 157, 153, 149, 145, 141, 137, 133, 129, 125, 121, 117, 113, 109, 105, 101, 97, 93, 89, 85, 80, 76, 72, 68, 64, 60, 56, 52, 48, 44, 40, 36, 32, 28, 24, 20, 16, 12, 8, 4, 0};
30+
uint8_t green[64] = {255, 250, 246, 242, 238, 234, 230, 226, 222, 218, 214, 210, 206, 202, 198, 194, 190, 186, 182, 178, 174, 170, 165, 161, 157, 153, 149, 145, 141, 137, 133, 129, 125, 121, 117, 113, 109, 105, 101, 97, 93, 89, 85, 80, 76, 72, 68, 64, 60, 56, 52, 48, 44, 40, 36, 32, 28, 24, 20, 16, 12, 8, 4, 0};
31+
uint8_t blue[64] = {255, 250, 246, 242, 238, 234, 230, 226, 222, 218, 214, 210, 206, 202, 198, 194, 190, 186, 182, 178, 174, 170, 165, 161, 157, 153, 149, 145, 141, 137, 133, 129, 125, 121, 117, 113, 109, 105, 101, 97, 93, 89, 85, 80, 76, 72, 68, 64, 60, 56, 52, 48, 44, 40, 36, 32, 28, 24, 20, 16, 12, 8, 4, 0};
32+
};
33+
}
34+
}
35+
}
36+
37+
ELOQUENT_SINGLETON(Eloquent::Graphics::Colormaps::Binary binary);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /