Add Four-Color algorithm page

Introduce an interactive Four Color Theorem demo: add FourColorComponent (template, styles, standalone component) with canvas-based grid, region generation, adjacency detection and a backtracking solver; include models for nodes/regions and grid constants. Wire up route and RouterConstants/UrlConstants, add menu entry in AlgorithmsService, and add i18n entries for English and German. Also add global color styles in styles.scss and a few minor i18n text adjustments.
This commit is contained in:
2026-03-08 11:01:14 +01:00
parent 61defae20e
commit 54b33daa40
11 changed files with 615 additions and 5 deletions

View File

@@ -360,6 +360,22 @@ canvas {
&.M2 {
background-color: green;
}
&.color1 {
background-color: #FF5252;
}
&.color2 {
background-color: #448AFF;
}
&.color3 {
background-color: #4CAF50;
}
&.color4 {
background-color: #FFEB3B;
}
}
}