User:Δεριζαματζορπρομπλεμιναυστραλια/PROTOTYPING-NETWORKED MEDIA: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 1: Line 1:
RAW IMAGE GENERATING
PYTHON AND GIMP
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()


TURTLE
TURTLE

Revision as of 19:59, 13 October 2013

RAW IMAGE GENERATING PYTHON AND GIMP


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

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


TURTLE

tried loops and events

1 2 3 4

to explore:gimp and python, audacity and python, events with loops?

Worked with inkscape, created images and then embedded them in my tumblr.