UNPKG

pick-distinct-colors

Version:

A collection of algorithms and utilities for analyzing and selecting maximally distinct colors. Now includes a unified pickDistinctColors API for easy color selection.

37 lines (34 loc) 1.4 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Color Distance Analysis</title> <link rel="stylesheet" href="css/styles.css"> <script type="module" src="js/main.js"></script> <script src="https://cdn.plot.ly/plotly-latest.min.js"></script> </head> <body> <div id="control-container"></div> <div id="initial-colors" class="algorithm-section"></div> <div id="results"></div> <div class="footer"> This color analysis tool was generated with the assistance of Claude AI (Anthropic). <br> All algorithms and visualizations are powered by AI-assisted development. <br> <span style="font-size: 0.9em; color: #888;"> <a href="https://bdamokos.github.io" style="color: #666; text-decoration: none;">More Projects</a> | <a href="https://github.com/bdamokos/color-distance" style="color: #666; text-decoration: none;">Source Code</a> </span> </div> <script> // Initialize the page when DOM is loaded document.addEventListener('DOMContentLoaded', () => { window.initializePage(); // Set initial colors after modules are loaded window.initialColors = Array.from({length: 50}, () => window.randomColor()); }); </script> </body> </html>