TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: 4K Desktop Wallpaper Generator

258 pointsby roytanckover 3 years ago

28 comments

roytanckover 3 years ago
I created a little web page (&lt;10kB) that generates a random 4K (3840*2160px) wallpaper image using Javascript and the &lt;canvas&gt; element. Right-click to save the image (desktop only for now).<p>No two images are the same. You may need a few refreshes to get an interesting result.<p>Code: <a href="https:&#x2F;&#x2F;github.com&#x2F;roytanck&#x2F;wallpaper-generator" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;roytanck&#x2F;wallpaper-generator</a>
arendtioover 3 years ago
Nice idea.<p>Ideas for optimization: - use some kind of seed from a URL, so that people can share them. - How about multi-monitor setups?<p>The multi-monitor setup is something I struggled a bit. My two monitors are stacked vertically. So I use SVG images, render them in 2x4k height + 80px or so and cut the relevant parts out.
评论 #29368776 未加载
评论 #29372686 未加载
评论 #29371266 未加载
eins1234over 3 years ago
This is really cool! Thanks for sharing!<p>Though one question popped up in my mind while looking at this... Given the trend of ever increasing screen resolutions with no end in sight, why don&#x27;t OSes support using vector images (svg, etc) as wallpapers?
评论 #29370646 未加载
评论 #29372376 未加载
grechover 3 years ago
Love the minimalist execution. Personally, I consider your tool having no user-facing options a plus (less decision making for me and excitement from complete randomness). I just set one of the wallpapers as my desktop background. Thank you
countmoraover 3 years ago
On Safari (macOS) it is as impossible to download this easy-to-download-picture as it is possible to download the impossible-to-download-picture[1] from yesterday.<p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29358880" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29358880</a>
评论 #29377319 未加载
评论 #29376345 未加载
OJFordover 3 years ago
Nice! Feature suggestion: an (optional) colour picker would be a nice touch, so you can pick (or perhaps enter #RGB) one that should appear and the others are then a fitting palette. Occurred to me because I was refreshing through a few, liked the colours on one, but not so much the pattern. (Perhaps alternative implementation would be a &#x27;hold colour palette&#x27; or &#x27;hold pattern&#x27; toggles, so only the other varies.)
评论 #29368899 未加载
评论 #29379598 未加载
bee_riderover 3 years ago
A fun alternative would be to run this on the desktop and generate a new wallpaper every time your computer starts up (This is not a feature request, though -- you&#x27;ve had plenty of those here already, and since you&#x27;ve helpfully released the code under GPL, I&#x27;m sure anyone interested could easily do this conversion on their own end).
评论 #29377185 未加载
notRobotover 3 years ago
Also see related: the soft landscapes twitter account: <a href="https:&#x2F;&#x2F;mobile.twitter.com&#x2F;softlandscapes" rel="nofollow">https:&#x2F;&#x2F;mobile.twitter.com&#x2F;softlandscapes</a>
stemlordover 3 years ago
Anyone else remember digitalblasphemy.com? Good times
评论 #29374180 未加载
评论 #29376072 未加载
roland35over 3 years ago
My favorite site for wallpapers is interface lift, but just note that the site does occasionally go down for months at a time!<p><a href="https:&#x2F;&#x2F;interfacelift.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;interfacelift.com&#x2F;</a>
评论 #29372123 未加载
评论 #29369003 未加载
FredPretover 3 years ago
This is just brilliant. I’ve been looking for ways to generate spanning wallpapers for two 4k screens, or two 4k’s + a laptop screen. Looks like this could be adapted for that.
oceankidover 3 years ago
Super nice! Save doesn&#x27;t work on Safari MacOS?
评论 #29369271 未加载
qrohlfover 3 years ago
Not entirely dissimilar to my own pattern generation tool, <a href="https:&#x2F;&#x2F;trianglify.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;trianglify.io&#x2F;</a><p>How are you doing the color palettes? Is it fully random or using some kind of picker algorithm?
评论 #29370741 未加载
评论 #29372789 未加载
GekkePrutserover 3 years ago
The colour schemes and limited amount of colours reminds me of the old VUE and CDE backgrounds :)<p>And that reminds me of xfishtank. I still use that sometimes for old school cool and also because it is pretty optimized (when it was written many X terminals shared a 10mbit coax) and great way to see if a remote X desktop session is still responsive.
enzover 3 years ago
Very nice. I now use one as my wallpaper. It&#x27;s pretty satisfying to know I have a uniquely generated wallpaper ;)
评论 #29370489 未加载
batuhandirekover 3 years ago
Not entirely same, but I have a similar project at <a href="https:&#x2F;&#x2F;circles.gallery" rel="nofollow">https:&#x2F;&#x2F;circles.gallery</a><p>Love the minimalism in yours! Maybe I should also put a URL for generating a single image like &#x2F;random<p>Thank you a lot for this :)
chubsover 3 years ago
My favourite part of this is that the wallpapers will look super sharp on my 4k display. It&#x27;s quite difficult to find wallpapers that don&#x27;t look blurry when blown up, even quality landscape photography. Very neat! Thanks for sharing :)
kevmo314over 3 years ago
Love the simple, readable source compared to the compiled stuff these days :) <a href="https:&#x2F;&#x2F;tanck.nl&#x2F;wallpaper&#x2F;wallpaper.js" rel="nofollow">https:&#x2F;&#x2F;tanck.nl&#x2F;wallpaper&#x2F;wallpaper.js</a>
masteruvpuppetzover 3 years ago
Can somebody recommend a free low poly background picture generator? Example <a href="https:&#x2F;&#x2F;trianglify.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;trianglify.io&#x2F;</a>
评论 #29383866 未加载
评论 #29369662 未加载
swayvilover 3 years ago
Tasteful. Minimal. You are truly owning the zone.
rcarmoover 3 years ago
Interesting. I used around 30-40 wallpapers generated through Trianglify until recently, this has a lot of potential.
naikrovekover 3 years ago
Tapet for Android is another example of this, and could serve as great inspiration if you need any.
sahiljajodia01over 3 years ago
This is amazing. However, how much is the probability for it to generate the same wallpaper twice?
评论 #29371455 未加载
rob_cover 3 years ago
Cool!<p>I wonder is the code public or just page source?<p>(Will have to check the page when not on mobile)
评论 #29371486 未加载
petepeteover 3 years ago
Works beautifully, I&#x27;ve saved a few for my rotation. Thanks!
nvaiderover 3 years ago
This is great for rotating my lockscreen backgrounds
peanut_wormover 3 years ago
You can’t download the image on iOS
评论 #29369064 未加载
bit-101over 3 years ago
Nice work!