MCPcopy Index your code
hub / github.com/processing/processing / moveTo

Method moveTo

core/src/processing/opengl/LineStroker.java:418–438  ·  view source on GitHub ↗
(int x0, int y0, int c0)

Source from the content-addressed store, hash-verified

416 }
417
418 public void moveTo(int x0, int y0, int c0) {
419 // System.out.println("LineStroker.moveTo(" + x0/65536.0 + ", " + y0/65536.0 + ")");
420
421 if (lineToOrigin) {
422 // not closing the path, do the previous lineTo
423 lineToImpl(sx0, sy0, scolor0, joinToOrigin);
424 lineToOrigin = false;
425 }
426
427 if (prev == LinePath.SEG_LINETO) {
428 finish();
429 }
430
431 this.sx0 = this.x0 = x0;
432 this.sy0 = this.y0 = y0;
433 this.scolor0 = this.color0 = c0;
434 this.rindex = 0;
435 this.started = false;
436 this.joinSegment = false;
437 this.prev = LinePath.SEG_MOVETO;
438 }
439
440 boolean joinSegment = false;
441

Callers 1

emitMoveToMethod · 0.45

Calls 2

lineToImplMethod · 0.95
finishMethod · 0.95

Tested by

no test coverage detected