Skip to content

Color Cache

Maximilian Dorn edited this page Aug 31, 2022 · 2 revisions

Color Cache

The ColorCache class is a map color -> RGB color lookup utility that caches the result.

Usage

byte col1 = ColorCache.rgbToMap(255, 0, 0);
byte col2 = ColorCache.rgbToMap(56, 122, 6);