Releases: Craft-Core/EV3-ColorRGBEnhanced-Block
Releases · Craft-Core/EV3-ColorRGBEnhanced-Block
Release list
v2.0 — Multi-language + ColorClassifier (Normalize/Setup/Distance/Identify/Enable)
What's new in v2.0
New block: ColorClassifier (Data Operations tab)
5 modes for color-based object classification:
| Mode | Description |
|---|---|
| Normalize | R,G,B → Rn,Gn,Bn (illumination-invariant ratio ×100) |
| Setup | Store reference RGB for one of 8 named color slots (Red/Green/Blue/Yellow/White/Black/Brown/Pink) |
| Setup Enable | Toggle each color ON/OFF via logic input — disabled colors output distance 999999 |
| Distance | Live R,G,B → squared Euclidean distance to each of 8 reference colors |
| Identify | D_Red..D_Pink → BestColor index + BestDistance |
Existing block: ColorSensorRGB (Sensor tab)
ReadRGB / ReadHSV / DectRGB modes — unchanged.
Multi-language support
15 locales: en-US, en-GB, ja, de, fr, es, it, nl, pt, ru, ko, zh-Hans, da, nb-NO, sv
Installation
- Download the `.ev3b` file
- In EV3-G: Tools → Block Import and Export Wizard → Import
— or —
Extract into `C:\Program Files (x86)\LEGO Software\LEGO MINDSTORMS Edu EV3\Resources\Blocks\`
v2.0 — Multi-language + Color Classifier
What's new in v2.0
New: Color Classifier block (Data Operations tab)
Distance-based color classification with mode-switchable functionality in a single block:
- Normalize — divide R/G/B by sum × 100 for illumination-invariant ratios
- Setup_C1..Setup_C8 — store one reference color per slot (8 slots, persistent globals)
- Distance — compute squared distance from live RGB to each of the 8 preset colors
- Identify — output
BestColor(1..8) andBestDistancefrom the 8 distance inputs
Typical wiring:
ColorSensorRGB ReadRGB → Normalize → Distance → Identify
Full multi-language support
All UI strings (display names, parameter descriptions, mode tooltips) localized into:
en-US · en-GB · ja · de · fr · es · it · nl · pt · ru · ko · zh-Hans · da · nb-NO · sv
Original block (preserved, now properly localized)
Color Sensor RGB Enhanced with ReadRGB, ReadHSV, DectRGB modes — same as v1.6 but with cleaned-up translations.
Installation
- Download
EV3-ColorRGBEnhanced_v2.0(Multi-language+ColorClassifier).ev3b - EV3-G → Tools → Block Import → select the file → Import → restart EV3-G
Notes
- VI files (
.vix) were authored as NI SourceModel XML; please report any block-loading issues on the issue tracker. - Translation quality across the 15 locales is AI-assisted — PRs to refine wording welcome.
- Stores up to 8 reference colors in persistent PBR globals (
OFDLCC_C1_R…OFDLCC_C8_B). State survives the program but is reset at brick reboot.