Random Gradient Wallpaper Generator


Oops, I did it again 🙂 Created a new CodePlex project, that is.


Introducing http://wallpaper.codeplex.com – a simple tool to generate a nice random wallpaper and display it on your desktop with just one click:


WallpaperGenerator1.png


WallpaperGenerator3



  • Randomize - assigns random colors to all four corners

  • Set as Wallpaper - saves the picture to My Pictures\GradientWallpaper.bmp and sets the Windows Desktop wallpaper to this file. It will overwrite the file if it exists.

  • Save colors to text file - appends the RGB values of the current colors to the "colors.txt" log file in the program's directory (in case you liked the colors and want to save the colors, not the image)
You can also click on each of the four corners and pick any color yourself. There are a total of 79228162514264337593543950336 possible wallpapers that can be generated this way.

WallpaperGenerator4WallpaperGenerator5WallpaperGenerator6WallpaperGenerator7WallpaperGenerator8WallpaperGenerator9WallpaperGenerator10WallpaperGenerator11


I wrote this in an evening a couple of years ago and it was just lying around, so I decided to publish it so that it doesn’t get lost. Of course, one could take WPF, MEF, Bling, pixel shaders and build it out into a super-extensible plug-in-based photoshop-like fractal-ray-tracing rendering wallpaper generator, but... For now, let’s stick with a simple WinForms app. But hey, it’s open source, feel free to contribute if you like 😉

Comments (10)

  1. Blake says:

    Aesthetically pleasing results, but if you are releasing it on CodePlex, where is the source for the DLLs?

  2. http://wallpaper.codeplex.com/SourceControl/ListDownloadableCommits.aspx

    You can use TFS client or SVN client (see instructions). You can also view the source online or download the source as a .zip file. Let me know if you have any questions.

  3. Oh sorry, I misunderstood the question. The sources for the .dlls are in http://structurededitor.codeplex.com/SourceControl/ListDownloadableCommits.aspx

    as part of the CSharpEditor solution.

  4. Blake says:

    Ah… I looked around in the livegeometry source tree, but didn’t think to check there.

    Thanks.

  5. Dejan says:

    Hi Kirill

    I wrote a follow up post about your Wallpaper Generator. Please have a look if you have some time

    http://www.ddejan.com/post/2009/10/29/Random-Gradient-Wallpaper-Generator.aspx

    thanks,

    dejan

  6. honu says:

    Hi Kirill, Dejan and friends.

    Great series of posts, lol.

    I’ve been funning around with F# and WPF.

    You might enjoy this:

    http://www.youtube.com/watch?v=xbfARUZmxz8

    Top down, bottom up … Ahaa!

    Art

  7. Nice one Art!

    Sorry I haven’t replied to your mail back then – was super busy… I am really excited about F# and immutable style, it’s just I don’t have time for everything 😉

    Take care

    Kirill

  8. Woodzy says:

    Is there a way for it to create random wallpapers at startup – i.e. in the startup folder ?

  9. No, not currently. However it should be really easy to update the source code to accept a command line argument "/silent" to not show the UI and just set the wallpaper and exit.

Skip to main content