From ef8f97b1c923a932c7b724ea36db188e0ee33889 Mon Sep 17 00:00:00 2001 From: "Fabian @ Blax Software" Date: Wed, 28 Oct 2026 12:51:09 +0100 Subject: [PATCH] A RGB pixels: three inputs, eight colours, on the canvas and on a component's screen Co-Authored-By: Claude Opus 5.5 (1M context) --- app/assets/css/main.css | 12 +++++ app/components/editor/BulkSettings.vue | 7 +++ app/components/editor/NodeSettings.vue | 9 +++- app/components/editor/NodeView.vue | 14 ++++-- app/composables/useEditor.ts | 31 ++++++++++++ app/composables/useMenu.ts | 9 +++- app/composables/useParts.ts | 2 +- app/lib/logic/check.ts | 2 + app/lib/logic/compile.ts | 3 +- app/lib/logic/geometry.ts | 20 +++++++- app/lib/logic/project.ts | 1 + app/lib/logic/types.ts | 2 + tests/rgb.test.ts | 69 ++++++++++++++++++++++++++ 13 files changed, 172 insertions(+), 9 deletions(-) create mode 100644 tests/rgb.test.ts diff --git a/app/assets/css/main.css b/app/assets/css/main.css index d458c91..5cf8137 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -5801,3 +5801,15 @@ button.tile:hover { .analyzer-head .hint { margin: 0; } + +.node .pixel-rgb { + fill: #5a6779; + font-size: 7px; + font-weight: 700; + text-anchor: middle; + pointer-events: none; +} + +.node .pixel-rgb.dark { + fill: rgb(0 0 0 / 0.55); +} diff --git a/app/components/editor/BulkSettings.vue b/app/components/editor/BulkSettings.vue index a7cb8d2..b86fdca 100644 --- a/app/components/editor/BulkSettings.vue +++ b/app/components/editor/BulkSettings.vue @@ -243,6 +243,13 @@ function pack() { +
+ Colours, for all +
+ + +
+