GithubHelp home page GithubHelp logo

gaborbata / voxel-cat Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 562 KB

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

Home Page: https://js1k.com/4065

License: MIT License

HTML 41.35% JavaScript 58.65%
js1k js1k-entries js1k-submissions javascript voxel cat es6 ct x-ray

voxel-cat's Introduction

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.

voxel-cat's People

Contributors

gaborbata avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.