- implemented isolated colouring depending on camera

This commit is contained in:
2025-11-27 11:43:10 +00:00
parent 1ada8d0966
commit f7dbde4511
4 changed files with 35 additions and 20 deletions

View File

@@ -1,7 +1,12 @@
import type { CameraFeedAction, CameraFeedState } from "../../types/types";
import type { CameraFeedAction, CameraFeedState, PaintedCell } from "../../types/types";
export const initialState: CameraFeedState = {
cameraFeedID: "A",
paintedCells: {
A: new Map<string, PaintedCell>(),
B: new Map<string, PaintedCell>(),
C: new Map<string, PaintedCell>(),
},
};
export function reducer(state: CameraFeedState, action: CameraFeedAction) {