d3.sketchy icon indicating copy to clipboard operation
d3.sketchy copied to clipboard

Render Bug with RectFill

Open emeeks opened this issue 10 years ago • 1 comments

Just a minor change in the code for the multiple rects example causes problems with rendering:

            for(var i = 0; i<19; i++){

                sketchy.rectFill({
                    x:25,
                    y:110 * i,
                    width:200,
                    height:100,
                    svg: svg,
                    density:1,
                    angle:i*10,
                    sketch: 0.5
                });
            }
screen shot 2015-08-08 at 10 40 37 pm

Here's a block if that helps:

http://bl.ocks.org/emeeks/703bb8f302443dbbd7e7

emeeks avatar Aug 09 '15 05:08 emeeks

Notice it's not just the pattern rendering, but also the offset of the paths. It looks like the offset may be calculated twice.

emeeks avatar Aug 09 '15 05:08 emeeks