>>4
It doesn't feel right in C. For instance, f@(_:fs) = 0 : 1 : zipWith (+) f fs takes its elegance from the contrived form which cannot be rendered in C.
Name:
Anonymous2009-07-28 14:41
Official Code Off: STAGE 1
Image Processing
You must code a program that takes in any two .jpegs of the same resolution, and combines them equally (on top of each other) into a single image of the same resolution. The output must be displayed on screen. Writing the output image to a file is unacceptable. All code will be tested with image pairs at resolutions of 10x10, 100x100, and 1000x1000.
Each contestant has 24 hours to complete. Code must be posted in this thread by 3pm eastern tomorrow.
Like the arithmetic mean of the RGB values of the two pixels?
As I see it: use SDL to load two JPEGs. Combine them into one JPEG. Display the result. Should be easy. Why write an encoder/decoder when there are libraries?
Once, one guy asked me to do his homework project thing. I gave him both the source and compiled code, and when he ran it in the lab, the professor saw a stream of the word ``PENIS'' displayed every second after two minutes of running the program. I guess he never tested it for more then two minutes. Anyway, he kicked my ass after that, but I'm still glad I did it.