gradex

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

Check out gradex on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

在第 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/支持显示为: 中文 / 英文

Latest Weekly Picks

make.ink favicon
Weekly Pick

Your AI tattoo generator for pro-grade concepts

Leo Wade
sellfy.com favicon
Weekly Pick

A code-free online store builder to turn views into revenue. Sell digital products, subscriptions, and merch, without fees or hassle.

Maris
www.videotoblog.ai favicon
Weekly Pick

Convert videos into awesome blog posts.

Video To Blog
www.sellerpic.ai favicon
Weekly Pick

SellerPic is the all-in-one AI design platform for e-commerce

SellerPic
fastimage.ai favicon
Weekly Pick

Fast Image AI instantly transforms your photos into stunning styles like Ghibli, Sketch, and Pixar. Effortlessly control image elements and create amazing effects with just one click.

Fast AI Team
linkedinpro.daisy.so favicon
Weekly Pick

AI-powered tool that transforms casual photos into professional LinkedIn headshots instantly. No photographer needed—just upload and download.

Gabriel
crevas.ai favicon
Weekly Pick

Crevas unifies Veo 3, Sora 2, Nano Banana and more into one intuitive canvas — so filmmakers can script, prompt, and generate cinematic stories without switching tools or losing consistency.

Spark Alpha
fotominiatur.com favicon
Weekly Pick

AI Foto Edit - Text to Image & Image Edit

foto miniatur