brucemcpherson / desktopliberation

hosting for desktop liberation google plus community
30 stars 1 forks source link

Find nearest matches in color schemes with Apps Script #158

Open brucemcpherson opened 1 year ago

brucemcpherson commented 1 year ago

Here’s another article on playing around with color in Apps Script. Let’s say you have a defined list of colors in a scheme (for example paint or textile colors or perhaps a predefined scheme like Pantone), and you want to find the nearest color in that scheme that matches a given color. Using the libraries from Content oriented color mixing with Apps Script we can calculate the distance between colors in a selection of colorspaces to find the best match between your target color and the scheme. In this article, I’ll demonstrate how to use a new library (bmMatchColorScheme) to do all that.

article here https://ramblings.mcpher.com/gassnippets2/find-nearest-matches-in-color-schemes-with-apps-script/