|
|
(22 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| | | <li>[[Runawebserverwithpython| Simple HTTP Server with Python]] |
| RAW IMAGE GENERATING
| | <li>[[Workingwithtext| Text]] |
| PYTHON AND GIMP
| | <li>[[raw image sequence assignment| Raw image sequence]] |
| | | <li>[[Rawimagegenerating| Raw image generating]] |
| | | <li>[[Turtleandinkscape| Turtle, inkscape]] |
|
| | <li>[[TerenceMcKennaTwitterBot| Terence McKenna TwitterBot]] |
| http://i.imgur.com/hRdCoKi.png
| |
| import struct
| |
| import random
| |
| f = open("image.data", 'w')
| |
| data = ''
| |
| for x in range(6460):
| |
| data += struct.pack('B', 205)
| |
| data += struct.pack('B', 0)
| |
| data += struct.pack('B', 0)
| |
| for x in range(24300):
| |
| data += struct.pack('B', 0)
| |
| data += struct.pack('B', 0)
| |
| data += struct.pack('B', 75)
| |
| for x in range(260300):
| |
| data += struct.pack('B', 0)
| |
| data += struct.pack('B', 238)
| |
| data += struct.pack('B', 0)
| |
| f.write(data)
| |
| f.close()
| |
| | |
| http://i.imgur.com/uYpktzU.png
| |
| import struct
| |
| import random
| |
| f = open("image.data", 'w')
| |
| data = ''
| |
| for x in range(15):
| |
| data += struct.pack('B', 255)
| |
| data += struct.pack('B', 0)
| |
| data += struct.pack('B', 0)
| |
| for x in range(2300):
| |
| data += struct.pack('B', 55)
| |
| data += struct.pack('B', 0)
| |
| data += struct.pack('B', 255)
| |
| for x in range(2500):
| |
| data += struct.pack('B', 0)
| |
| data += struct.pack('B', 238)
| |
| data += struct.pack('B', 0)
| |
| for x in range(25000):
| |
| data += struct.pack('B', 50)
| |
| data += struct.pack('B', 50)
| |
| data += struct.pack('B', 25)
| |
| for x in range(50000):
| |
| data += struct.pack('B', 75)
| |
| data += struct.pack('B', 255)
| |
| data += struct.pack('B', 0)
| |
| f.write(data)
| |
| f.close()
| |
| | |
| http://i.imgur.com/MGg8ddE.png
| |
| import struct
| |
| import random
| |
| f = open("image.data", 'w')
| |
| data = ''
| |
| for x in range(1515):
| |
| data += struct.pack('B', 255)
| |
| data += struct.pack('B', 55)
| |
| data += struct.pack('B', 55)
| |
| for x in range(200):
| |
| data += struct.pack('B', 55)
| |
| data += struct.pack('B', 0)
| |
| data += struct.pack('B', 255)
| |
| for x in range(52500):
| |
| data += struct.pack('B', 0)
| |
| data += struct.pack('B', 238)
| |
| data += struct.pack('B', 0)
| |
| f.write(data)
| |
| f.close()
| |
| | |
| played also with Louisas code
| |
| | |
| http://i.imgur.com/JulCv4q.png
| |
|
| |
| import struct
| |
| import random
| |
| f = open("image.data", 'w')
| |
| data = ''
| |
| for x in range(70000):
| |
| varR = random.randint(0,55)
| |
| varG = random.randint(0,139)
| |
| varB = random.randint(0,255)
| |
| data += struct.pack('B', varR)
| |
| data += struct.pack('B', varG)
| |
| data += struct.pack('B', varB)
| |
| f.write(data)
| |
| f.close()
| |
| | |
| http://i.imgur.com/JGTJogI.png
| |
| import struct
| |
| import random
| |
| f = open("image.data", 'w')
| |
| data = ''
| |
| for x in range(25550):
| |
| varR = random.randint(0,55)
| |
| varG = random.randint(0,255)
| |
| varB = random.randint(0,25)
| |
| data += struct.pack('B', varR)
| |
| data += struct.pack('B', varG)
| |
| data += struct.pack('B', varB)
| |
| f.write(data)
| |
| f.close()
| |
| | |
| | |
| | |
| TURTLE
| |
| | |
| tried loops and events
| |
| | |
| [http://i.imgur.com/LkrxhXt.jpg 1] | |
| [http://i.imgur.com/I2jW1GI.png 2] | |
| [http://i.imgur.com/OKgfL5l.png 3] | |
| [http://i.imgur.com/vDLzTNI.png 4]
| |
| | |
| to explore:gimp and python,
| |
| audacity and python, events with loops?
| |
| | |
| Worked with inkscape, created images and then embedded them in my tumblr.
| |