Skip to main content

gradex

jwenjian.github.io

gradex 是一个基于 grade-js 库的在线工具,能够从上传的图片中提取两种主色并生成互补渐变背景,支持下载背景图片和查看相关 HTML 代码。

AI Image & DesignOpen source#color-palette#gradient-generator#background-generator
Visit website

在第 61 期的文章中推荐了一个开源的JS库, grade-js, 这个库可以获取图像的2种主色并生成互补渐变的背景, #506 ---基于这个JS库, 我做了一个在线的网站, 支持拖入或者点击上传本地图片, 程序自动读取图片的2个主色, 并设置成全屏的渐变背景色.之后可以点击 [下载] 按钮, 可以下载渐变背景图片, 也可以查看HTML渐变背景的相关代码.比如输入下面这张图片:image生成的背景效果如下图:image点击 [ 下载 ] 按钮之后, 你就可以得到下面这张渐变背景图片:image对应的html背景色的代码如下:html<div style="height: 1080px; background-image: linear-gradient(135deg, rgb(242, 155, 153) 0%, rgb(60, 1, 146) 75%)"></div>项目地址: https://github.com/jwenjian/gradex在线地址: https://jwenjian.github.io/gradex/支持显示为: 中文 / 英文

More in AI Image & Design

Posewear

AI fashion studio that turns pose, outfit, and person into new images

AI Image ·

Qoves AI

Facial analysis with measured proportions and reversible changes to try on

AI Image ·

Idol Max- Image to 3D

Turn a single photo into an interactive 3D model and 360 GIF

AI Image ·

minimax h3 image

AI image generator for creating and editing visuals from text and images

AI Image ·

Text to GIF

AI GIF generator that turns text descriptions into animated GIFs

AI Image ·

FromImage AI

Turn a reference photo into a new image with AI

AI Image ·