Skip to content

Instantly share code, notes, and snippets.

View tafsiri's full-sized avatar

Yannick Assogba tafsiri

View GitHub Profile
@tafsiri
tafsiri / cars_data.js
Created January 31, 2019 18:49
cars.json as js file
var carsData = [
{
"Name":"chevrolet chevelle malibu",
"Miles_per_Gallon":18,
"Cylinders":8,
"Displacement":307,
"Horsepower":130,
"Weight_in_lbs":3504,
"Acceleration":12,
"Year":"1970-01-01",
@tafsiri
tafsiri / .block
Created July 7, 2017 02:32
Sorting with generators + history
license: mit
height: 300
border: no
@tafsiri
tafsiri / .block
Last active July 7, 2017 01:59
Sorting animation with generators
license: mit
height: 300
border: no
@tafsiri
tafsiri / .block
Last active August 1, 2017 22:04
Stepper with generators
license: mit
height: 600
border: no
@tafsiri
tafsiri / .block
Last active May 8, 2017 19:42 — forked from pbeshai/.block
Animate 100,000 points with regl
license: mit
height: 720
border: no
@tafsiri
tafsiri / README.md
Last active April 18, 2017 16:08
Tangram Firefly Map

Tangram Shader Firefly Map

Visual effects with fragment shaders

@tafsiri
tafsiri / .block
Last active February 26, 2017 01:12
HS Neutral 4 Drops
license: mit
height: 720
border: no
@tafsiri
tafsiri / README.md
Last active October 21, 2016 03:59

Tangram Interactive Shader

Driving shaders params via mouse interaction.

Notes

Use requestRender rather than updateConfig and you can set scene properties (e.g. uniforms) directly.

To interact with uniforms, declare them in the scene file then directly manipulate them from the scene object (not the config) in the JS api.

Tangram Colors.

Notes

@tafsiri
tafsiri / README.md
Last active December 21, 2016 02:41

Tangram Choropleth.

Notes

The mapzen tiles osm boundaries layer only seems to include lines between countries, not the outline of the country itself, this implies the line mayu not be a closed polygon. You won't get the line running along the coast and Australia doesn't have any boundary data.

Get border data from https://mapzen.com/data/borders/