git.haldean.org dotmatrix / 6617da4
trying a different color scheme Haldean Brown 4 years ago
2 changed file(s) with 14 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
00 dotmatrix
11 .tup
2 output.png
2 *.png
3 *.gif
1616 typedef png::basic_rgb_pixel<uint8_t> pixel;
1717
1818 uint8_t c[7][3] {
19 { 255, 250, 243 },
20 { 210, 204, 200 },
21 { 180, 168, 160 },
22 { 140, 140, 135 },
23 { 110, 104, 100 },
24 { 50, 40, 35 },
25 { 0, 0, 0 },
26 };
27 /*
28 uint8_t c[7][3] {
1929 { 0, 0, 40 },
2030 { 140, 0, 0 },
2131 { 180, 30, 0 },
2434 { 255, 255, 140 },
2535 { 255, 255, 240 },
2636 };
37 */
2738
2839 Vector2f random_uv()
2940 {
126137 edges.push_back(std::make_pair(uv1, uv2));
127138 }
128139
129 const int framecount = 200;
140 const int framecount = 0;
130141 for (int f = 0; f < framecount; f++)
131142 {
132143 float t = (float) f / framecount;