Datei:725 Julia sets.png

Aus testwiki
Zur Navigation springen Zur Suche springen
    Originaldatei (1.856 × 1.600 Pixel, Dateigröße: 1,13 MB, MIME-Typ: image/png)

    Diese Datei stammt aus Wikimedia Commons und kann von anderen Projekten verwendet werden. Die Beschreibung von deren Dateibeschreibungsseite wird unten angezeigt.

    Beschreibung

    Beschreibung
    English: Julia sets with c ranging from -2.2-1.2i to 0.6+1.2i with a 0.1 step in both directions, generated by the python script below and scaled down using inkscape. A larger version of this file can be found in the history.
    Datum
    Quelle Eigenes Werk
    Urheber George
    header=chr(66)+chr(77)+chr(54)+chr(0)+chr(48)+5*chr(0)+chr(54)+3*chr(0)+chr(40)+4*chr(0)+chr(1)
    +3*chr(0)+chr(1)+2*chr(0)+chr(1)+chr(0)+chr(24)+7*chr(0)+chr(48)+17*chr(0)
    
    def f(z,c):
     for l in range(1,101):
      if abs(z)<=10:  z=z*z+c
      else: return (100-l)/100.
     return 0
    
    for cy in range(-12,13):
     for cx in range(-22,7):
      julia=file('Output/Julia '+str(cx/10.)+' '+str(cy/10.)+'.bmp','wb+');julia.write(header)
      for y in range(-128,128):
       for x in range(-128,128):
        baa=int(f((x/128.)+(y/128.)*1j,(cx/10.)+(cy/10.)*1j)*255)
        julia.write(palette[baa])
      julia.close()
    </source>
    the palette is a list of colors used as a gradient, I used the following palette
    <source lang="python">
    palette=['\x00\x00\x00', '\x80\x00\x00', '~\x00\x00', '{\x00\x01', 'w\x00\x02', 't\x00\x02', 
    'r\x00\x03', 'o\x00\x04', 'l\x00\x05', 'j\x00\x06', 'f\x00\x07', 'c\x00\t', '`\x00\n', '^\x00\x0c', 
    '[\x00\x0e', 'X\x00\x0f', 'T\x00\x12', 'R\x00\x13', 'O\x00\x15', 'L\x00\x18', 'J\x00\x19', 
    'G\x00\x1c', 'D\x00\x1e', 'A\x00!', '?\x00#', '<\x00&', '9\x00)', '6\x00,', '5\x00.', '2\x001', 
    '/\x004', ',\x007', '+\x009', '(\x00=', '%\x00@', '$\x00B', '!\x00F', '\x1f\x00I', '\x1d\x00M', 
    '\x1b\x00O', '\x19\x00R', '\x17\x00V', '\x15\x00Y', '\x13\x00\\', '\x12\x00_', '\x10\x00c', 
    '\x0f\x00e', '\r\x00i', '\x0b\x00m', '\n\x00p', '\t\x00s', '\x08\x00v', '\x06\x00z', '\x05\x00}', 
    '\x04\x00\x80', '\x04\x00\x83', '\x03\x00\x86', '\x02\x00\x8a', '\x02\x00\x8c', '\x01\x00\x8f', 
    '\x01\x00\x93', '\x00\x00\x95', '\x00\x00\x98', '\x00\x00\x9b', '\x00\x00\x9e', '\x00\x00\xa0', 
    '\x00\x01\xa3', '\x00\x01\xa6', '\x00\x02\xa9', '\x00\x03\xab', '\x00\x04\xae', '\x00\x05\xb1', 
    '\x00\x06\xb3', '\x00\x08\xb6', '\x00\n\xb8', '\x00\x0c\xbb', '\x00\r\xbd', '\x00\x10\xbf', 
    '\x00\x12\xc2', '\x00\x15\xc4', '\x00\x16\xc6', '\x00\x19\xc9', '\x00\x1c\xcb', '\x00\x1e\xcc', 
    '\x00!\xcf', '\x00$\xd1', '\x00(\xd3', '\x00*\xd5', '\x00.\xd7', '\x001\xd9', '\x005\xdb', 
    '\x007\xdc', '\x00;\xde', '\x00?\xe0', '\x00C\xe2', '\x00F\xe3', '\x00J\xe5', '\x00N\xe7', 
    '\x00P\xe8', '\x00T\xea', '\x00X\xeb', '\x00]\xed', '\x00_\xee', '\x00d\xef', '\x00h\xf0', 
    '\x00l\xf2', '\x00o\xf3', '\x00s\xf4', '\x00w\xf5', '\x00z\xf6', '\x00~\xf7', '\x00\x82\xf8', 
    '\x00\x86\xf9', '\x00\x88\xf9', '\x00\x8c\xfa', '\x00\x90\xfb', '\x00\x94\xfc', '\x00\x96\xfc', 
    '\x00\x9a\xfd', '\x00\x9e\xfd', '\x00\xa1\xfe', '\x00\xa3\xfe', '\x00\xa7\xfe', '\x00\xaa\xfe', 
    '\x00\xac\xff', '\x00\xaf\xff', '\x00\xb2\xff', '\x00\xb5\xff', '\x00\xb6\xff', '\x00\xb9\xff', 
    '\x01\xbc\xff', '\x03\xbe\xff', '\x04\xc0\xff', '\x05\xc2\xff', '\x08\xc5\xff', '\t\xc6\xff', 
    '\x0c\xc8\xff', '\x0f\xcb\xff', '\x13\xcd\xff', '\x15\xce\xff', '\x19\xd0\xff', '\x1d\xd2\xff', 
    '!\xd4\xff', '$\xd6\xff', ')\xd8\xff', '.\xda\xff', '3\xdb\xff', '7\xdd\xff', '<\xde\xff', 
    'B\xe0\xff', 'F\xe1\xff', 'K\xe3\xff', 'Q\xe4\xff', 'W\xe6\xff', '\\\xe7\xff', 'b\xe8\xff', 
    'h\xea\xff', 'n\xeb\xff', 'r\xec\xff', 'y\xed\xff', '\x7f\xee\xff', '\x83\xef\xff', '\x89\xf0\xff', 
    '\x90\xf1\xff', '\x96\xf2\xff', '\x9a\xf3\xff', '\xa0\xf4\xff', '\xa6\xf5\xff', '\xac\xf6\xff', 
    '\xb0\xf7\xff', '\xb5\xf7\xff', '\xbb\xf8\xff', '\xc0\xf9\xff', '\xc4\xf9\xff', '\xc9\xfa\xff', 
    '\xce\xfb\xff', '\xd1\xfb\xff', '\xd5\xfc\xff', '\xda\xfc\xff', '\xde\xfd\xff', '\xe0\xfd\xff', 
    '\xe4\xfd\xff', '\xe7\xfe\xff', '\xea\xfe\xff', '\xec\xfe\xff', '\xee\xfe\xff', '\xf0\xff\xff', 
    '\xf2\xff\xff', '\xf3\xff\xff', '\xf4\xff\xff', '\xf5\xff\xff', '\xf5\xff\xff', '\xf5\xff\xff', 
    '\xf5\xfe\xfe', '\xf5\xfe\xfe', '\xf5\xfd\xfd', '\xf4\xfb\xfb', '\xf4\xf9\xf9', '\xf3\xf8\xf8', 
    '\xf3\xf5\xf5', '\xf2\xf2\xf2', '\xf2\xef\xef', '\xf1\xed\xed', '\xf0\xe9\xe9', '\xef\xe5\xe5', 
    '\xee\xe0\xe0', '\xed\xdd\xdd', '\xec\xd9\xd9', '\xeb\xd4\xd4', '\xea\xcf\xcf', '\xe9\xcb\xcb', 
    '\xe8\xc5\xc5', '\xe6\xc0\xc0', '\xe5\xbc\xbc', '\xe3\xb6\xb6', '\xe2\xb0\xb0', '\xe0\xaa\xaa', 
    '\xdf\xa6\xa6', '\xdd\x9f\x9f', '\xdb\x99\x99', '\xd9\x92\x92', '\xd8\x8e\x8e', '\xd6\x87\x87', 
    '\xd4\x81\x81', '\xd3||', '\xd0vv', '\xceoo', '\xccii', '\xcaee', '\xc8^^', '\xc6XX', '\xc3RR', 
    '\xc2NN', '\xbfHH', '\xbcBB', '\xba<<', '\xb888', '\xb633', '\xb3--', '\xb1**', '\xae%%', '\xab  ', 
    '\xa9\x1c\x1c', '\xa7\x19\x19', '\xa4\x15\x15', '\xa1\x12\x12', '\x9e\x0e\x0e', '\x9c\x0c\x0c', 
    '\x99\t\t', '\x96\x07\x07', '\x94\x05\x05', '\x91\x03\x03', '\x8e\x02\x02', '\x8b\x01\x01', 
    '\x89\x00\x00', '\x86\x00\x00']
    </source>
    the last piece of code collects the pictures in one big picture.
    <source lang="python">
    header=chr(66)+chr(77)+chr(54)+chr(0)+chr(48)+5*chr(0)+chr(54)+3*chr(0)+chr(40)+4*chr(0)+chr(29)
    +3*chr(0)+chr(25)+2*chr(0)+chr(1)+chr(0)+chr(24)+7*chr(0)+chr(48)+17*chr(0)
    collection=file('Collection.bmp','wb+')
    collection.write(header)
    
    for cfy in range(-12,13):
     f={}
     for cfx in range(-22,7):
      f[(cfx,cfy)] = file('Output/Julia '+str(cfx/10.)+' '+str(cfy/10.)+'.bmp','rb+')
      f[(cfx,cfy)].seek(54)
     for line in range(256):
      for ccx in range(-22,7):
       collection.write(f[(cfx,cfy)].read(256*3))
     for cfx in range(-22,7): f[(cfx,cfy)].close()
    

    Lizenz

    Public domain Dieses Werk wurde von seinem Urheber George als gemeinfrei veröffentlicht. Dies gilt weltweit.
    In manchen Staaten könnte dies rechtlich nicht möglich sein. Sofern dies der Fall ist:
    George gewährt jedem das bedingungslose Recht, dieses Werk für jedweden Zweck zu nutzen, es sei denn, Bedingungen sind gesetzlich erforderlich.

    Kurzbeschreibungen

    Ergänze eine einzeilige Erklärung, was diese Datei darstellt.

    In dieser Datei abgebildete Objekte

    Motiv

    image/png

    d0f2fe897aea8ac664ea735f73c57aee78a8ba06

    1.181.580 Byte

    1.600 Pixel

    1.856 Pixel

    Dateiversionen

    Klicke auf einen Zeitpunkt, um diese Version zu laden.

    Version vomVorschaubildMaßeBenutzerKommentar
    aktuell14:09, 10. Sep. 2014Vorschaubild der Version vom 14:09, 10. Sep. 20141.856 × 1.600 (1,13 MB)wikimediacommons>RokerHROoptipng -o7 → 36.44% decrease

    Keine Seite verwendet diese Datei.