Thursday, 24 August 2017

Blur Brush

So I was looking for a blur brush and came across this neat solusion
The basic idea is to overlay [the brushed area to be blured] with the same area in actual image by using "source-in" composition, then draw this blured area back on top the original image. 
But one tiny problem with the original example is that it each time overlays the selected area with the original image instead of the updated one from last blurring, so the result of each brush does not add up. I modified the fiddle by adding another hidden canvas to keep account of the updates. 

Monday, 14 August 2017

Angular + d3(v4) pie chart

Been reading about  D3-ON-ANGULARJS, and in the chapter Dynamic Visualization it provides a nice example of a changeable d3 pie chart written with Angular. However the example is in v3, so I did a little bit modification to make it work in v4.