https://github.com/gabsedits/bingpalette
Generate a color pallete using today's Bing image
https://github.com/gabsedits/bingpalette
Last synced: 11 months ago
JSON representation
Generate a color pallete using today's Bing image
- Host: GitHub
- URL: https://github.com/gabsedits/bingpalette
- Owner: GabsEdits
- License: mit
- Created: 2025-04-23T10:30:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-23T20:19:57.000Z (about 1 year ago)
- Last Synced: 2025-04-23T21:28:27.214Z (about 1 year ago)
- Language: TypeScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Bing Palette
Generate a color palette using today's Bing image
> ![WARNING]
> This project was mostly done for fun, without a real world application, so you
*can* expect bugs, espacially about the colors being a little off.
## How it works
It's not that complicated. The script first fetches the `HPImageArchive` api from
Bing, then it exctracts the jpg from it, it resizes the image to `17x17`, uses
`sharp` to extract the dominant colors. It sorts the colors based on their
lightness, then hue.
## Installation
There are only 2 real requirements:
- Deno v2
- Access to the internet (for fetching the image)
## Usage
You clone the repository and run the script with Deno:
```sh
deno task generate
```
For now, it can set the background desktop image only for macos, as I haven't optimized
it for other platforms yet.