Package org.nlogo.api

Examples of org.nlogo.api.Graphics2DWrapper.push()


    }

    if (wrap) {
      topology.wrapDrawable(this, sg, xcor, ycor, spotlightSize, patchSize);
    } else {
      sg.push();
      double size = spotlightSize * patchSize + adjustSize(spotlightSize, patchSize);
      double offset = size / 2.0;
      double x = topology.graphicsX(xcor, patchSize) - offset;
      double y = topology.graphicsY(ycor, patchSize) - offset;
      sg.translate(x, y);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.