MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / strokePath

Function strokePath

webgl/js/three.min.js:12201–12212  ·  view source on GitHub ↗
( color, linewidth, linecap, linejoin )

Source from the content-addressed store, hash-verified

12199 }
12200
12201 function strokePath( color, linewidth, linecap, linejoin ) {
12202
12203 setLineWidth( linewidth );
12204 setLineCap( linecap );
12205 setLineJoin( linejoin );
12206 setStrokeStyle( color.getContextStyle() );
12207
12208 _context.stroke();
12209
12210 _bboxRect.inflate( linewidth * 2 );
12211
12212 }
12213
12214 function fillPath( color ) {
12215

Callers 2

renderFace3Function · 0.85
renderFace4Function · 0.85

Calls 4

setLineWidthFunction · 0.85
setLineCapFunction · 0.85
setLineJoinFunction · 0.85
setStrokeStyleFunction · 0.85

Tested by

no test coverage detected