-
Notifications
You must be signed in to change notification settings - Fork 0
/
colormaps.h
36 lines (30 loc) · 1 KB
/
colormaps.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef COLORMAPS_H
#define COLORMAPS_H
/*
* Provides structs and presets for color maps associated with
* LEGO pieces. Structs include `cartidiges` which contain color
* information and number of LEGO pieces within said cartridge, and
* `printers` which contain sets of cartidges creating a colormap.
*
* @author Joe Robertazzi, Winter 2024 - <tazzi@stanford.edu>
*/
// Standard Library Imports
#include <stddef.h>
// Contains a `color` and `capacity`
struct cartridge {
unsigned int color, capacity;
};
// Contains a `num_cartidges`, `list_cartridges`, and `name_printer`
struct printer {
unsigned int num_cartridges;
struct cartridge* list_cartridges;
const char* name_printer;
};
// List of printers, an array of all printers, and the total number of printers available
extern struct printer P_MOD_BLUE;
extern struct printer P_DEFAULT_BLUE;
extern struct printer P_RAINBOW;
extern struct printer P_NONE;
extern const struct printer* PRINTER_LIST[];
extern const unsigned int NUM_PRINTERS;
#endif