Welcome to MSDN Blogs Sign in | Join | Help

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 ;)

Published Monday, September 28, 2009 1:35 AM by Kirill Osenkov
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Random Gradient Wallpaper Generator

Monday, September 28, 2009 6:28 PM by Blake

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

# re: Random Gradient Wallpaper Generator

Monday, September 28, 2009 6:33 PM by Kirill Osenkov

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.

# re: Random Gradient Wallpaper Generator

Monday, September 28, 2009 6:57 PM by Kirill Osenkov

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.

# re: Random Gradient Wallpaper Generator

Monday, September 28, 2009 6:59 PM by Blake

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

Thanks.

# re: Random Gradient Wallpaper Generator

Thursday, October 29, 2009 9:33 AM by Dejan

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

# re: Random Gradient Wallpaper Generator

Wednesday, November 04, 2009 7:32 PM by Kirill Osenkov

# re: Random Gradient Wallpaper Generator

Tuesday, November 17, 2009 12:41 PM by art_scott@msn.com

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

# re: Random Gradient Wallpaper Generator

Tuesday, November 17, 2009 12:55 PM by Kirill Osenkov

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

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker