Skip to content

Instantly share code, notes, and snippets.

View nbremer's full-sized avatar

Nadieh Bremer nbremer

View GitHub Profile
@nbremer
nbremer / README.md
Last active October 1, 2015 19:54
Valentine's day Heart curve - One Line

A heart created with D3 and a nice formula found on Wolfram to celebrate Valentine's Day!

  • The blog can be found here
  • The second example of the Spirograph heart the gets animated can be found here
@nbremer
nbremer / README.md
Last active November 16, 2015 17:26
Circle Packing at its most Basic - Canvas only

This is the second step of my first attempt to learn canvas. I want to improve a piece a made a few weeks ago about the division of occupations. The d3.js version has so many DOM elements due to all the small bar charts that it is very slow. Therefore, I hope that a canvas version might improve things.

In this block I create a static circle pack layout that only uses D3 for the initialization, scales and such. But the visual is drawn with pure canvas, based on the data supplied by the d3 pack layout

I wrote a more extensive tutorial around what I learned while doing this project in my blog Learnings from a D3.js addict on starting with Canvas in which this can be seen as step 2. See the previous step in which d3.js still played a much bigger role here and the [next step that has become a zoomable circle pack (but with

@nbremer
nbremer / README.md
Last active June 5, 2016 10:28
Adding a glow filter - simple examples
@nbremer
nbremer / .block
Last active June 11, 2016 16:58
Linear SVG Gradient - Weather Radial
height: 800
@nbremer
nbremer / .block
Last active June 11, 2016 17:16
A SOM Clustering of block Colors - Including RGB
height: 800
@nbremer
nbremer / .block
Last active June 12, 2016 07:59
Stretched Chord - Step 5 - How to make the chords touch the pulled apart arcs again
height: 660
@nbremer
nbremer / .block
Last active June 12, 2016 08:00
Stretched Chord - Step 4 - How to pull the two halves apart
height: 660
@nbremer
nbremer / .block
Last active June 12, 2016 08:00
Stretched Chord - Step 3 - Different Color Scheme
height: 660
@nbremer
nbremer / .block
Last active June 12, 2016 08:01
Stretched Chord - Step 3 - How to make the two sections symmetrical
height: 670
@nbremer
nbremer / .block
Last active June 12, 2016 08:02
Stretched Chord - Step 2 - How to create an empty section in between the two halves
height: 670