Projekte
Auf GitHub ansehen
fast-average-color/fast-average-color
Über uns
🍏🍊🍅 Fast Average Color
Design und MedienWhat you can do
- Some algorithms: simple, sqrt (default) and dominant
- Small bundle size, tree shaking
- string (url of image or base64)
- canvas or OffscreenCanvas
Gemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +3
- in 1 month
- +4
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
Original🍏🍊🍅 Fast Average Color
A simple library that calculates average or dominant color of any images or videos in browser environment.

Features
- Bet on speed
- Some algorithms: simple, sqrt (default) and dominant
- Small bundle size, tree shaking
- Average color can be obtained from:
- Average color can be obtained from specific part of resource
- Support for transparency (PNG, SVG and other formats)
- Support for web workers
- Support for Node.js
Table of contents
Unhandled Rejection (SecurityError): The operation is insecure.
The crossOrigin attribute allows images that are loaded from external origins to be used in canvas like the one they were being loaded from the current origin. Using images without CORS approval taints the canvas. Once a canvas has been tainted, you can no longer pull data back out of the canvas. By loading the canvas from cross origin domain, you are tainting the canvas.
You can prevent this by setting crossorigin="anonymous".
More examples
- Background
- Timeline
- Box shadow
- Box shadow, 4 sides
- Border
- Gallery: borders or vertical-horizontally
- Gradient
- Gradient as stripes
- Canvas
- Text photo
- Ambilight
- Define the average color for your images
- WebGL
- Colors of movies 🎬 average color for frames
License
MIT License
Similar projects
Friends
Ähnliche Projekte entdecken
Wird geladen…