☰ Menu

Scene.hu

Magyar demoscene portál – grafikusok, zenészek, programozók alkotói közössége

Mona Lisa 250 byte-ban, 8 biten

Posted by Murphy on April - 29 - 2014

250 byteban egy Atari XL-en hogyan rajzolj Mona Lisát? Így!

Mindez hogy lehetséges? Ilmenit a poueten elárulta.

“There are 64 pseudo random brush strokes of cycling color. Each stroke is shorter than previous to increase details. Intro code generates set of random numbers starting from initial 32bit seed with Galois LFSRs as a PRNG. This set is used to control direction of brush movement and and starting position. Each stroke has initial 16bit value that influences the seed. Therefore data is 4 bytes (initial seed) + 64*2 bytes of stroke PRNG seeds. Picture of Mona Lisa (3072 bytes) was compressed to those random brush strokes by external optimization program (a few days of work for modern CPU/GPU combo). The process can be seen as lossy compression (23x) of picture into random brush movements.”

Ha saját gépen is viszont látnád a Mona Lisa-át, innen tudod letölteni.

Ugrás a lap tetejére Ugrás a lap aljára