MCPcopy Create free account
hub / github.com/NikLever/ThreeJS-PathEditor / drawAxes

Method drawAxes

graph.js:18–33  ·  view source on GitHub ↗
( x, y, lineWidth = 2 )

Source from the content-addressed store, hash-verified

16 }
17
18 drawAxes( x, y, lineWidth = 2 ){
19 this.context.strokeStyle = "#88A";
20 this.context.lineWidth = lineWidth;
21
22 // yAxis
23 this.context.beginPath();
24 this.context.moveTo( x, 0 );
25 this.context.lineTo( x, this.canvas.height );
26
27 // xAxis
28 this.context.moveTo( 0, y );
29 this.context.lineTo( this.canvas.width, y );
30
31 // Draw the Path
32 this.context.stroke();
33 }
34
35 drawLightGrid( yAxis, pos, extent ){
36 if ( extent < 5 ) return;

Callers 1

drawBgMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected