mirror of
https://github.com/janishutz/color-thief.git
synced 2025-11-25 05:44:24 +00:00
Add tests: getColor on black, red, color, transparent, white image
This commit is contained in:
@@ -28,7 +28,6 @@ document.querySelectorAll('.image').forEach((image) => {
|
||||
// Run Color Thief functions and display results below image.
|
||||
// We also log execution time of functions for display.
|
||||
const showColorsForImage = function(image, section) {
|
||||
const file = section.src;
|
||||
const start = Date.now();
|
||||
const color = colorThief.getColor(image);
|
||||
const elapsedTimeForGetColor = Date.now() - start;
|
||||
|
||||
Reference in New Issue
Block a user