Skip to content
This repository was archived by the owner on Mar 7, 2023. It is now read-only.
/ voxel-cat Public archive

🐱 X-ray CT scan of a voxel cat. An entry for the JS1k 2019 JavaScript code golfing competition.

License

Notifications You must be signed in to change notification settings

gaborbata/voxel-cat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

52ac99b · Dec 20, 2021

History

8 Commits
Sep 16, 2020
Feb 20, 2019
Feb 20, 2019
Feb 20, 2019
Feb 20, 2019
Feb 20, 2019
Feb 20, 2019
Sep 16, 2020
Mar 3, 2019
Feb 20, 2019
Feb 20, 2019
Dec 20, 2021
Feb 26, 2019
Feb 20, 2019
Feb 20, 2019
Feb 20, 2019

Repository files navigation

voxel-cat Optimize

Overview

voxel-cat is an entry for the JS1k 2019 "X" JavaScript code golfing competition.

The goal of the competition is to create a fancy JavaScript demo up to 1024 bytes.

voxel-cat

Demo Description

This entry is a demonstration of CT scan, also known as computed tomography scan, and formerly known as CAT scan, which makes use of computer-processed combinations of many X-ray measurements taken from different angles to produce cross-sectional images of a scanned object, allowing the user to see inside the object without cutting.

Data

Demo data is based on Wioletta Orłowska's voxel cat image with small modifications.

Voxel data has been created with Goxel voxel editor.

Optimizations

Voxel data has been compressed with a fixed-length pattern substitution compression algorithm implemented in Ruby with a small decompressor in JavaScript.

Among various code golfing tricks, for further optimizations the JavaScript code has been minified with Closure Compiler with minor manual tweaks baked into a Gradle script.

About

🐱 X-ray CT scan of a voxel cat. An entry for the JS1k 2019 JavaScript code golfing competition.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published