Package org.nlogo.api

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


      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);
      draw(sg, size);
      sg.pop();
    }

    sg.antiAliasing(false);
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.