Skip to main content
deleted 1 character in body
Source Link
Beta Decay
  • 23.4k
  • 8
  • 72
  • 165

Python -, 127 charsbytes

Creates a Sierpinski triangle.

import Image
f=1e3
a=Image.new('RGB',(f,f))
p=a.load()
r=range(f)
for i in r:
 for j in r:p[i,j]=(i*16&j*16,)*3
a.save('s.png')

Python - 127 chars

Creates a Sierpinski triangle.

import Image
f=1e3
a=Image.new('RGB',(f,f))
p=a.load()
r=range(f)
for i in r:
 for j in r:p[i,j]=(i*16&j*16,)*3
a.save('s.png')

Python, 127 bytes

Creates a Sierpinski triangle.

import Image
f=1e3
a=Image.new('RGB',(f,f))
p=a.load()
r=range(f)
for i in r:
 for j in r:p[i,j]=(i*16&j*16,)*3
a.save('s.png')

deleted 1 character in body
Source Link
Beta Decay
  • 23.4k
  • 8
  • 72
  • 165

Python - 128127 chars

Creates a Sierpinski triangle.

import Image
f=1000f=1e3
a=Image.new('RGB',(f,f))
p=a.load()
r=range(f)
for i in r:
 for j in r:p[i,j]=(i*16&j*16,)*3
a.save('s.png')

Python - 128 chars

Creates a Sierpinski triangle.

import Image
f=1000
a=Image.new('RGB',(f,f))
p=a.load()
r=range(f)
for i in r:
 for j in r:p[i,j]=(i*16&j*16,)*3
a.save('s.png')

Python - 127 chars

Creates a Sierpinski triangle.

import Image
f=1e3
a=Image.new('RGB',(f,f))
p=a.load()
r=range(f)
for i in r:
 for j in r:p[i,j]=(i*16&j*16,)*3
a.save('s.png')

added 1 character in body; deleted 1 character in body
Source Link
Beta Decay
  • 23.4k
  • 8
  • 72
  • 165

Python - 132128 chars

Creates a Sierpinski triangle.

import Image as I
f=1000
a=Ia=Image.new('RGB',(f,f))
p=a.load()
r=range(f)
for i in range(f)r:
 for j in range(f)r:p[i,j]=(i*16&j*16,)*3
a.save('s.png')

Python - 132 chars

Creates a Sierpinski triangle.

import Image as I
f=1000
a=I.new('RGB',(f,f))
p=a.load()
for i in range(f):
 for j in range(f):p[i,j]=(i*16&j*16,)*3
a.save('s.png')

Python - 128 chars

Creates a Sierpinski triangle.

import Image
f=1000
a=Image.new('RGB',(f,f))
p=a.load()
r=range(f)
for i in r:
 for j in r:p[i,j]=(i*16&j*16,)*3
a.save('s.png')

deleted 3 characters in body; deleted 14 characters in body; deleted 1 character in body
Source Link
Beta Decay
  • 23.4k
  • 8
  • 72
  • 165
Loading
deleted 8 characters in body; added 3 characters in body
Source Link
Beta Decay
  • 23.4k
  • 8
  • 72
  • 165
Loading
added 3 characters in body
Source Link
Beta Decay
  • 23.4k
  • 8
  • 72
  • 165
Loading
deleted 16 characters in body; deleted 26 characters in body
Source Link
Beta Decay
  • 23.4k
  • 8
  • 72
  • 165
Loading
deleted 2 characters in body
Source Link
Beta Decay
  • 23.4k
  • 8
  • 72
  • 165
Loading
Source Link
Beta Decay
  • 23.4k
  • 8
  • 72
  • 165
Loading