MCPcopy Index your code
hub / github.com/NikLever/ThreeJS-PathEditor / drawCircle

Method drawCircle

graph.js:162–170  ·  view source on GitHub ↗
( x, y, radius, fill, stroke = false )

Source from the content-addressed store, hash-verified

160 }
161
162 drawCircle( x, y, radius, fill, stroke = false ){
163 this.context.fillStyle = fill;
164 if ( stroke ) this.context.strokeStyle = "#000";
165 this.context.lineWidth = 1;
166 this.context.beginPath();
167 this.context.arc( x, y, radius, 0, Math.PI*2 );
168 this.context.fill();
169 if ( stroke ) this.context.stroke();
170 }
171
172 drawArrow( x, y, radius, fill, left ){
173 this.context.fillStyle = fill;

Callers 1

drawNodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected