tangrams / tron-style

Tron 2.0
https://tangrams.github.io/tron-style
MIT License
62 stars 14 forks source link

TRON 2.0

Welcome to TRON 2.0 by Geraldine Sarmiento and Patricio Gonzalez Vivo. Rebuilt from the ground up to take advantage of the latest features of Tangram (JS and ES) graphics engine and conventions.

TRON is an exploration of scale transformations in the visual language of TRON with the use of Tangram blocks. On this new version, visual forms and elements transform per zoom, revealing new cartographic details and a new experience of scale.

Beside the design challenges we want to make the source more approachable by dividing the scene file in multiple smaller pieces. So instead of having a single monolitical .yaml scene file you will find smaller modules that focus on a particular aspect of the map scene.

How it works?

The main elements are:

Bundling

Having the scene file distributed accross different smaller modules creates more network calls. To solve this you will find in this repository a bundle.py script that construct a ZIP file (tron.zip) that will hold all the files needed.

To use it you will:

git clone https://github.com/tangrams/tron-style.git
cd tron
git submodule update --init --recursive
pip install pyyaml
python <(curl -s https://raw.githubusercontent.com/tangrams/bundler/master/bundler.py) 

Edit

One of the nice things of running a local instance of a Tangram scene is the hability to modify it and learn from it! We defenetly encourage to do it. You can host the style by doing:

python -m SimpleHTTPServer 8000

Althought we also have been working on a way to edit Tangram scene files and see it change inmediatly. The project is call TangramPlay and can be found here.

A quick way to start playing with Tron2.0 is by importing the scene file and inmediatly start editing on top of the scene file. For that:

  1. Click here to open Tron in TangramPlay

  2. Once you finish you can download it or copy it back to your local file, but remember to take out the first line import.

About the process

Here are some resource we share and sketch Geraldine Sarmiento and I during the development of TRON2.0. We hope you enjoy it.

Generative Tron Palette Glow lines Highways Grid animation Grid animation Stripes Stripes animation Simplex Grid animation Dots pattern Mosaic-dots transition Stripes Stripes-char transition Contours Hill Shading Buildings window Generative Icons Animated Icons Animating Icons w POIs SDF's Animating Icons w POIs SDF's