Recreation of Piet Mondrian Composition

23

7

Good Afternoon,

Your goal is to, in the least amount of source code bytes, recreate any of Piet Mondrian's 'Composition' paintings (for instance, Composition #10).

The recreation can either use the actual colors, or replace it with the appropriate colours from the Windows Default 16 Color Palette.

Your recreation can be outputted in PNG, BMP or NetPBM, either to a file or to STDOUT, or directly to the screen.

Your recreation must be a resolution of 512x512 or higher.

Your recreation must not access the internet. If your program requires data files, then their size will be added to the size of your source.

Your score will be the size of your source file in bytes.

Please state with your entry which painting you're recreating, and provide a link to the original and a picture of your recreation.

Good Luck.

lochok

Posted 2013-09-21T03:57:21.173

Reputation: 3 139

Step one: find a language with a built-in PNG, BMP or NetPBM encoder. – John Dvorak – 2013-09-21T05:02:29.277

I'm OK with that. In fact, I chose those formats because in PNG and BMPs case, lots of languages already support it, and in NetPBM's case, you don't really need an encoder - it has an ascii format which is a series of space separated numbers. – lochok – 2013-09-21T05:22:28.147

6

Relevant: Piet

– Griffin – 2013-09-21T10:56:58.937

4It's a difficult language to work in... every now and then I attempt to do a Quine outputting NetPBM... but yeah. I'll be very impressed if anybody can recreate Piet Mondrian in Piet! – lochok – 2013-09-21T14:56:43.093

2@lochok I would offer a bounty for a Piet answer if anybody was seriously interested in trying. – Jerry Jeremiah – 2017-02-10T03:08:14.353

Is there any limit on how similar our image has to be to the original? – 12Me21 – 2017-02-11T04:31:59.150

Generally speaking, as close as possible - using either the correct colours or the 16 Windows colours. If it looks nothing like it - my suspicion is that people would be able to tell. – lochok – 2017-02-11T05:44:17.507

What about things like line thickness and position? – 12Me21 – 2017-02-11T16:48:19.337

2Can we output character art using terminal color escapes and block drawing characters? (eg. ▃▃▌) Or is this best posed as a different challenge? – Tobia – 2014-02-02T15:13:27.833

Answers

14

Tikz, 175 bytes

Composition III in Black and White, 175 bytes

\documentclass[tikz]{standalone}\begin{document}\tikz{\def\b{;\draw[line width=}\def\a{)--(}\clip(1,1\a1,5\a5,5\a5,1)\b2mm](0,4\a6,4\a6,3\a4,3)\b1mm](4,0\a4,5);}\end{document}

Verify it in the Blogosphere

This is perhaps one of Mondrian's most minimalistic works and I am surprised no one has found it yet. It is not however particularly interesting so I have included several other paintings in my answer.

Explanation

There is a bit of a wrapper that is associated with every tikz answer. The wrapper is:

\documentclass[tikz]{standalone}\begin{document}\tikz{
}\end{document}

Once you get past the wrapper there are a few \def statements that save bytes but unfortunately obfuscate the code:

\def\b{;\draw[line width=}\def\a{)--(}

If we make all the proper substitutions our code comes out looking like:

\clip(1,1)--(1,5)--(5,5)--(5,1);
\draw[line width=2mm](0,4)--(6,4)--(6,3)--(4,3);
\draw[line width=1mm](4,0)--(4,5);

The first bit is a \clip and is very important, but we will skip over it for the time being.

Now we draw the first line on the blank canvas, This line is rather thick so we use [line width=2mm] to set the thickness to 2mm:

\draw[line width=2mm](0,4)--(6,4)--(6,3)--(4,3);

This connects a couple of nodes and produces this shape:

Next we \draw a second stroke, however this stroke is thinner so we have to set the line thickness to 1mm:

\draw[line width=1mm](4,0)--(4,5);

Now our painting looks like:

This is close to the original but not quite, so here is where the \clip comes into play. We use the \clip to remove all the extra lines from our canvas and set the canvas to the correct size. With the canvas resized we get the image:

Composition III in Black and White


Composition With Yellow Patch, 214 bytes

\documentclass[tikz]{standalone}\begin{document}\tikz[line width=2mm]{\clip(1,1)rectangle(7,7);\draw(0,8)rectangle(4,3.5)rectangle(6.5,1.2)rectangle(4,0);\draw[fill=yellow](6.5,3.5)rectangle(8,2.5);}\end{document}

Evaluate it in CyberSpace

Explanation to come


Composition II in Blue and Yellow, 225 bytes

\documentclass[tikz]{standalone}\begin{document}\tikz[line width=2mm]{\clip(1,1)rectangle(7,10);\draw(8,9)rectangle(3,6)rectangle(0,0);\draw[fill=yellow](0,0)rectangle(3,2);\draw[fill=blue](0,11)rectangle(3,9);}\end{document}

Assess it over the Webbernetz!

Explanation to come


Composition B (No. 2) in Red, 232 bytes

\documentclass[tikz]{standalone}\begin{document}\tikz[line width=2mm]{\clip(1,1)rectangle(10,13);\draw[line width=1mm](1.2,5)--(1.2,9);\draw[fill=red](0,14)rectangle(5,9);\draw(0,9)rectangle(11,5)(7,0)rectangle(5,14);}\end{document}

Attempt it within the Internet!

Explanation

First here is the code with line breaks inserted to make it more readable:

\documentclass[tikz]{standalone}
\begin{document}
\tikz[line width=2mm]{
\clip(1,1)rectangle(10,13);
\draw[line width=1mm](1.2,5)--(1.2,9);
\draw[fill=red](0,14)rectangle(5,9);
\draw(0,9)rectangle(11,5)(7,0)rectangle(5,14);
}
\end{document}

The first command of interest is

\draw[fill=red](0,14)rectangle(5,9);

This draws a red rectangle with a black outline. For the upper left hand corner of the painting.

We then draw two more rectangles with white interiors and black outlines to create the grid pattern on the painting

\draw(0,9)rectangle(11,5)(7,0)rectangle(5,14);

We then draw in a thin line

\draw[line width=1mm](1.2,5)--(1.2,9);

And crop the image to the proper size

\clip(1,1)rectangle(10,13);


Composition II in Red, Blue and Yellow, 251 bytes

\documentclass[tikz]{standalone}\begin{document}\tikz[line width=1mm]{\clip(1,1)rectangle(9,9);\draw[fill=yellow](8.5,6)--(0,6)--(8.5,6)--(8.5,2)rectangle(10,0);\draw[fill=red](3,3)rectangle(10,10);\draw[fill=blue](0,0)rectangle(3,3);}\end{document}

Test it upon the World Wide Web!

Explanation

First I will insert some line breaks to make my code readable

\documentclass[tikz]{standalone}
\begin{document}
\tikz[line width=1mm]{
\clip(1,1)rectangle(9,9);
\draw[fill=yellow](8.5,6)--(0,6)--(8.5,6)--(8.5,2)rectangle(10,0);
\draw[fill=red](3,3)rectangle(10,10);
\draw[fill=blue](0,0)rectangle(3,3);
}
\end{document}

The first line of importance is:

\draw[fill=yellow](8.5,6)--(0,6)--(8.5,6)--(8.5,2)rectangle(10,0);

This draws the following shape:

This strange shape is the yellow rectangle in the lower right corner and the two lines that are no the edge of a colored rectangle. Next we insert the red square and cover up the extra lines made by the last shape:

\draw[fill=red](3,3)rectangle(10,10);

This comes out looking like:

Now we insert our blue square:

\draw[fill=blue](0,0)rectangle(3,3);

Now all that is left is to crop out all the unnecessary parts of the image using a \clip

\clip(1,1)rectangle(10,10);

Composition II in Red, Blue and Yellow


Composition II, 308 bytes

\documentclass[tikz]{standalone}\begin{document}\tikz[line width=2mm]{\clip(1,1)rectangle(12.6,13);\draw(0,0)rectangle(10,4)rectangle(2,12)--(0,12);\draw[fill=red](10,1.6)rectangle(14,0);\draw[fill=yellow](6,12)rectangle(10,14);\draw[fill=blue](0,4)rectangle(2,8);\fill(10,10)rectangle(14,14);}\end{document}

Check it out on the Information-Super-Highway

Explanation to come

Post Rock Garf Hunter

Posted 2013-09-21T03:57:21.173

Reputation: 55 382

12

Mathematica 202 287 bytes.

Just For Fun! 330 bytes: Mondrian with "Boogie Woogie" in Its Title

Column[{"Boogie Woogie", Grid[{{"",i["",b->Red],\[SpanFromLeft]},{"",\[SpanFromAbove],\[SpanFromBoth]},{i["",b->Blue],"",""},{\[SpanFromAbove],\[SpanFromAbove],i["",b -> Yellow]}},Dividers->{{2->t@5,3->t@6},{2->t@9,3->t@7,4->t@6}},ItemSize->{{1->3,2->9,3->1},{1->6,2->6,3->2,4->2}}]},Alignment->Center]

enter image description here


Actual Submission [287 bytes]

\[SpanFromLeft] and similar expressions take up roughly 85 bytes. In mathematica each such expression has its dedicated one character symbol.

t=Thickness;b=Background;i=Item;
Grid[{{"",i["",b->Red], \[SpanFromLeft]},{"",\[SpanFromAbove],\[SpanFromBoth]},{i["",b->Blue],"",""},{\[SpanFromAbove],\[SpanFromAbove],i[ "",b->Yellow]}},
Dividers->{{2->t@5, 3->t@6},{2->t@9,3->t@7,4->t@6}},ItemSize->{{1->3, 2->9, 3->1},
{1->6, 2->6, 3->2, 4->2}}] 

side by side

Output on left; photo of Piet Mondrian, Red Blue Yellow Composition on right.

DavidC

Posted 2013-09-21T03:57:21.173

Reputation: 24 524

3Nice try. You're not getting the bounty that easily. – Post Rock Garf Hunter – 2017-02-15T01:33:52.500

11

Ruby, 112 (111) characters

Piet Mondrian - composition in B (No.II) with Red

b="0 "*9
w="2 "*9
puts"P3 609 771 2",["1 0 0 "*267,w*8+b*2+w*79,w*89].map{|x|(x+b*3+w*42+b*3+w*66)*249}*(b*2436)

my production on the left, the upscaled reference on the right.

enter image description here

The colors can be tweaked slightly - up to a precision of 1/9 - without loss of score by tweaking the max-value in PPM. I've chosen the "suitable Win16 color" approach. 8/9 white is probably closer to the canvas original color, but 9/9 is closer to the author's intention.

One character can be saved if we replace "1 0 0 " with (w+b+b) (#F00 red). I believe that counts as "close enough"

file ouptut version (not golfed)

File.open "tmp.ppm", ?w do |f|
    b="0 "
    w="2 "
    s=b*27+w*378+b*27+w*594
    f.puts"P3 609 771 2",["1 0 0 "*267,w*72+b*18+w*711,w*801].map{|x|(x+s)*249}*(b*21924)
end

John Dvorak

Posted 2013-09-21T03:57:21.173

Reputation: 9 048

An easy one: "0 " -> b – Howard – 2013-09-21T07:58:40.073

@Howard damn. Missed this one while minifying. Thanks – John Dvorak – 2013-09-21T08:00:20.310

And some more if you change w="2 " to w="2 "*9 and b also. – Howard – 2013-09-21T08:09:24.640

umm... I get this (it goes on forever)

– Doorknob – 2013-09-22T19:27:46.027

@Doorknob save that as a ppm file and open in an image editor – John Dvorak – 2013-09-22T19:34:53.653

@Doorknob "Your recreation can be outputted in ... NetPBM, ... to STDOUT, ..." – John Dvorak – 2013-09-22T19:36:01.893

9

SmileBASIC, 2774 1892 bytes

Broadway Boogie Woogie

GCLS-920851D$="w$BȜąr:BȂąr7?Ƣǘy1SƑǘb<?ŵǘw-/ƶvyFMƮeb<<ŶIr:,ėǭy:Sėǘw-LŒƄw7;ėƎrkLćƄrBMĜey26ğ¸bKBē²y,Bć²w<Dđïw+DüïyDÒïw--çvyU8Òpw.1±syBM¨eb;<Iy28¥żrJNůbwN{ůr?@Ǣb3>Sǭw.Fb¤w24D­rMF5¤w,7Nnr[75ny1X=e
FOR I=1TO 36G A(),A(),A(),A(),A()NEXT
D$=" w*+r6,r1+b<*w1+b/+b++r(+w*+w,Br )b+*b()w0,w=+b,,r5+b1+r ,w24-Ȃ  w  w#.r-#-Ǥ  w*+r4,b3+r6*w2+b,-r-,b++r*+b**r(*b(*r*+b<-w@+b -w ,r4+b1+b%-w,5-ǔ  w +r)+w?#-ƹǘ w +r%-b,#-ƭ +w *r +w/,b2,r1-b;-w7+b*.w5+r1+r +-ƒ> w +r'-b*#-ž *r+)w +r?+b:+b1-b2+w:+w*+w3-b4-r4-b6,w2+r--w3+b1+r )w52-ş  w*+r )w ,b>+r7+b :w -b,+r:+w*+w7,r 6w ,r7-r0.w/+bM+b1+b ,w24-ľ *w +r)+r *w5+r9,b7.w++w ,r.+w*+w6*b Dw *r06w -r5+b *w8+w +r1+b ,w *r(7-ü  w*+w )b +w*+r*+bD-rC/r7+b*+r5+bD-r,.b/.w.+b *w8+r +w1+b'+r,4-Ò  w*+b )w+*r+*w +b )w<0wX-w +r*+b /wd-w/.b/*w+-r 7w)+bC+r,3-p *w+)w +b*+w*+b )w@2wU*w+*w++wx-wQ-w.,bT+b,.-* +w +r++r5,w6+w %|üŭ w3+r1*w(+r0+r7*b (w )r3*w+*w,+r-*w +b5+r )w6+w.,r1+w *b*-w +b *w(,r()w ,r+*r :| ȋ+w7*b 1w4)w +r %|şǷ+r,*w)+w.*w*)w ?r -w+'|pǷ)w,)w +b*#| Ƿ+r/+b()w ?r -w+*w),r(*w *b +w *r +| Ǣ w+(w +b1*w(+r0+b7)b *w *r2)w +b *w,+r7+b5+r )w6+b/+b )w1,r7+b.*b9*w +b*8| Ǎ w3+w )b0*w +r4)w +r/+w**w**b +w6+w )r1*b3+w /|üň+b-*w1+w%*r(-w +r *w.+w')r (w5*| ň w3+w )r0*w +b )r5*b/+w3+w *r +w *r,+w9+r3+w-*b (w +r,+b2,w /r3+b0)r *b+-w+*r :| ij w3+b )w)*r 'w +b (w+)w *r1+b0*w.+r6+b )w0)w,)w +b4+w +b0)w'*r1*b))w+*b.*b1(w+*r ;| 3w +b )w*)b 'w +b.)r 'w )b0+r <b,+b6+b.,b=+r 3w ,b +w *b 6w *r);b)+b7+b 1w=9| Z w3+r (w.-w +b1+w +r0+r )w +r (w,+r6+b *w),r8+b?+bJ*w:)w+)w.*r1)w+*r 7| >+r )w6+r2*b1+r6*b1*w +b*(| ,
FOR Q=1TO 27S=A()T=A()R=A()L=A()FOR I=1TO L
R A(),89R A(),A()NEXT
NEXT
DEF A()RETURN-32+ASC(POP(D$))END
DEF R L,C
IF L THEN IF R-13THEN G C,L,11,T,S:T=T+L ELSE G C,11,L,T,S:S=S+L
END
DEF G C,H,W,Y,X
GFILL X,Y,X+W-1,Y+H-1,-1716698*(C>88)-2302505*(C==87)-6080725*(C==82)-14597488*(C<67)END

screenshot

Each of the "lines" in the image is stored in this format:

x,y,direction,numberOfSegments,
yellowLength,nextColor,colorLength,
yellowLength,nextColor,colorLength,...

All the numbers are stored as CHR$(number+32), colors are stored as one character; w,y,r, or b, and direction is stored as | or -

The extra rectangles are just stored as:

x,y,width,height,color,
x,y,width,height,color,...

In the same way.

12Me21

Posted 2013-09-21T03:57:21.173

Reputation: 6 110

Nice! I was thinking about doing QBasic, but there isn't a 512x512 screen mode. – DLosc – 2017-02-10T19:23:38.287

I got very lucky; SmileBASIC's graphics pages are exactly 512x512 pixels – 12Me21 – 2017-02-15T01:19:32.220

7

SVG - 455 480 - Mondrian Composition II in Red, Blue, and Yellow

If you can embed Javascript into SVG and make it dynamic, its a programming language. Ergo, this is a program. Turns out if an x or y coord is missing in SVG it defaults to 0. Also red is shorter than #f00!

<?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg"><rect x="145" fill="red" width="455" height="440"/><rect y="432" fill="#00F" width="150" height="168"/><rect x="550" y="517" fill="#FF0" width="50" height="83"/><rect x="140" width="16" height="600"/><rect y="430" width="600" height="16"/><rect y="180" width="140" height="25"/><rect x="550" y="430" width="15" height="170"/><rect x="550" y="515" width="50" height="16"/></svg>

Pretty Printed:

<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg">
  <rect x="145" fill="red" width="455" height="440"/>
  <rect y="432" fill="#00F" width="150" height="168"/>
  <rect x="550" y="517" fill="#FF0" width="50" height="83"/>
  <rect x="140" width="16" height="600"/>
  <rect y="430" width="600" height="16"/>
  <rect y="180" width="140" height="25"/>
  <rect x="550" y="430" width="15" height="170"/>
  <rect x="550" y="515" width="50" height="16"/>
</svg>

user8777

Posted 2013-09-21T03:57:21.173

Reputation:

Wait, I thought Composition B (No.II) with Red 1935 was #2

– John Dvorak – 2013-09-21T05:42:53.583

4@JanDvorak I don't know, I just looked him up on Wikipedia. Honestly, Piet was a pretty lazy painter. They all look the same. – None – 2013-09-21T06:11:57.080

I think you can avoid most of the double quotes and still work in most browsers. Not sure about compliance, though. – John Dvorak – 2013-09-21T08:02:43.887

@LegoStormtroopr Lazy? That's pretty rich, coming from a guy who hangs out on a website devoted to writing short programs. – boothby – 2013-09-22T00:49:28.393

1@boothby Touche. I was going to argue that I've learned a lot from code golf due to its hyperminimalist approach. But... the same could be argued of Piet's work too. – None – 2013-09-22T04:54:17.980

huh... the SVG renders cropped on the bottom in latest Chrome when I append it directly into the document after this answer. Renders just fine if I set the height explicitly. – John Dvorak – 2013-09-22T12:05:47.017

You can get rid of the xml version and encoding line, it isn't required. – Sir_Lagsalot – 2013-09-24T16:40:12.423

3

SmileBASIC, 67 bytes

GCLS-1GFILL 353,0,367,#R,0GFILL.,121,#R,156,0GFILL 367,266,#R,293,0

I picked an easy one: Composition III in Black and White

Luckily SB's graphics page is exactly 512x512 pixels, but it won't all fit on the 400x240 screen so I can't get a screenshot easily.

Explained:

GCLS -1 'fill screen with &HFFFFFFFF (white)
GFILL 353,0,367,511,0 'draw vertical line in &H00000000 (black)
GFILL 0,121,#R,156,0 'draw horizontal line
GFILL 367,266,#R,293,0 'draw small horizontal line

12Me21

Posted 2013-09-21T03:57:21.173

Reputation: 6 110

3

Processing, 15,447 15,441 15,439 bytes

String i="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wC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cQUEKQpoEKHkRil5o4bVDPHGARvwBxV1LOdJNRW+BavstpkQISWCkp5Ps40YJORjGKtCI7lRcSINR88muLPHsp4ohiJaojaWmIUNlodENxwkD4AUV7aCQ5ZAT9hUd2Q8sfzpVaY1tYlXBaIkZHMcBJSyAVeJfXA36n51kWMayyyLKMgE4B3xv49qPNI2kb1//9k=";PImage x=loadImage(i);void draw(){image(x);}

Brute force, and I haven't managed to find a way to remove the draw function.

It errors in the main processing engine, I think because it's too big of a b64. You can test it here.

JS fiddles does crop it though, to 100*100px. My base64 works, but the online environment doesn't. :(

Rɪᴋᴇʀ

Posted 2013-09-21T03:57:21.173

Reputation: 7 410

You can golf this by using PImage x=loadImage(i); instead – user41805 – 2017-02-10T11:16:58.190

1The question demands a resolution of 512x512 or higher, but the canvas in your fiddle is only 100x100. Is this a quirk of JSFiddle? – Dennis – 2017-02-10T18:09:39.740

@Dennis It's not only the canvas size. The image is cut off on both the right and the bottom, making the result incorrect. – mbomb007 – 2017-02-10T22:34:33.170

@Dennis Yeah, it is. Manually setting it to 512*512 px still crops it to the same size. It's just JS fiddle, and the b64 I used is greater than 512. – Rɪᴋᴇʀ – 2017-02-10T22:35:17.600

data:;base64 works just as well – user41805 – 2017-02-11T15:38:16.640

PImage x=loadImage("data:;... is shorter than declaring the String – user41805 – 2017-02-11T15:47:16.960

@KritixiLithos ah, thanks. Can't edit right now but will do. – Rɪᴋᴇʀ – 2017-02-11T19:02:28.867

2

Love2D, 4956 + 395 + 1 = 5351 bytes

f=io.open("d","rb")s=f:read("*a"):gsub("(.)(.)",function(a,b)return a:rep(b:byte())end)o=love.image.newImageData(512,512)c={{244,243,248},{173,24,0},{250,209,5},{30,64,164}}o:mapPixel(function(x,y)i=math.floor((x+math.floor(y/4)*512)/4)O=3-i%4 n=s:sub(math.floor(i/4)+1,math.floor(i/4)+1)if n and#n>0 then b=math.floor(n:byte()/(4^O))%4 else b=0 end return unpack(c[b+1])end)o:encode("png","o") 

The Data file is stored HERE

Output:

Output

Original:

Original

Explanation

f = io.open("d","rb")                                                   -- Open the image in raw format.
s = f:read("*a"):gsub("(.)(.)",function(a,b)return a:rep(b:byte())end)  -- And read it's contents. 
o=love.image.newImageData(512,512)                                      -- Make the output image
c = {{244,243,248},{173,24,0},{250,209,5},{30,64,164}}                  -- Build the Pallet
o:mapPixel(function(x,y)                                                -- Fill the image, based on a function
    i = (x+y*512)                                   -- The position this pixel exists on the string, 0 indexed.
    O = 3-i%4                                       -- The offset. The byte stores 4 pixels, so this is the id among a group of 4.
    n = s:sub(math.floor(i/4)+1,math.floor(i/4)+1)  -- And this gets the byte itself.
    if n and #n > 0 then                            -- Sometimes this is null and I don't like it.
        b = math.floor(n:byte()/(4^O))%4            -- /4^offset % 4 gives us the value of the index on the pallet.
    else
        b = 0                                       -- Fallback plan.
    end
    return unpack(c[b+1])                           -- Set the pixel to the colour required.
end)
o:encode("png","o") -- Store it in Appdata as "o", which is a png file.

The Encoder.

This is just the script I used to encode the image. Gif worked out more compressed, but I wasn't challenged to display a gif.

img = love.image.newImageData("mondrian.jpg")
-- white    0
-- blue     3
-- yellow   2
-- red      1

cols = {{244,243,248},{173,24,0},{250,209,5},{30,64,164}}

local s = ""
for y = 0, 511 do
    for x = 0, 511 do
        local r,g,b = img:getPixel(x,y)
        local n = 0
        local D = math.huge
        for k,v in pairs(cols) do
            local d = (v[1]-r)^2 + (v[2]-g)^2 + (v[3]-b)^2
            if d < D then
                n = k-1
                D = d
            end
        end
        s = s .. n
    end
end
-- Convert base 4 to base 256
-- How many digits do we need- Every 4 digits
encd = ""
for str in s:gmatch"...." do
    local n = str:sub(1,1) * 4^3 +
              str:sub(2,2) * 4^2 +
              str:sub(3,3) * 4^1 +
              str:sub(4,4) * 4^0
    encd = encd .. string.char(n)
end

f = io.open("stored.dat","wb")

smlr = ""
lst = ""
c = 0
for s in encd:gmatch"." do
    if s == lst then
        c = c + 1
        while c > 255 do
            smlr = smlr .. lst .. string.char(255)
            c = c - 255
        end
    else
        if c > 0 then
            smlr = smlr .. lst .. string.char(c)
        end
        lst = s
        c = 1
    end
end

f:write(smlr)

Mostly competing for the bounty. There are likely better ways to do this, but I thought it would be interesting to try to use a simple pallet and run length decoding.

EDIT: Input image was simplified, slightly less accurate, but a magnitude less bytes.

ATaco

Posted 2013-09-21T03:57:21.173

Reputation: 7 898

2Why do parts of your output look like they're made of puzzle pieces? Is that what you meant by "slightly less accurate, but a magnitude less bytes"? It seems to me that the resulting gaps in the color strips make this not a valid recreation. – DLosc – 2017-02-15T06:59:47.650