Generate Random Backgrounds For Twitter

I had a hack attack yesterday. I converted an old C program of mine that automatically generated random patterned backgrounds for an X11 desktop, to now generate similar random patterns, but this time save them in a .bmp file. If you then convert then to .jpg (or .gif or .png) they can be uploaded and used as your new Twitter background.

The simple Python script that did this is here. A big thankyou to Paul McGuire for writing the bmp.py code that makes this so easy. You can find that file here.

You can see a sample random circle background pattern on my Twitter page.

It's version 0.1 of the code. A quick simple conversion. It needs to be tidied up and improved. It should also just generate .jpg (or .gif or .png) files. I need to see if there is a standard Python class trhat does something like that.

What would be even nicer was if it could automatically change your Twitter background, but I don't see anything in the Python API for Twitter that allows anything like that. Pity.

[]

[]

Comments:

Post a Comment:
Comments are closed for this entry.
About

user12607856

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today