-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add memoized versions of
rgb_colors
for foreground and background c…
…olors. The changes were made to improve performance by reducing the number of calculations required to find the nearest color for a given RGB value. The `rgb_foreground_colors` and `rgb_background_colors` methods only return colors that match the specified options, which can help reduce the amount of data that needs to be processed.
- Loading branch information
Showing
2 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters