add colour selection based on ID

This commit is contained in:
2025-01-27 16:19:07 +01:00
parent 1097c6e09d
commit 2dbdc5ac40
3 changed files with 25 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
#pragma once
#include <stdint.h>
#include "../../window/colour.h"
typedef uint16_t Shape;
typedef uint8_t ShapeRow;
@@ -33,3 +35,4 @@ static inline _Bool is_set(ShapeRow row, uint8_t index) {
}
Shape shape_from_id(ShapeId id);
Colour colour_from_id(ShapeId id);