Package nodebox.graphics

Examples of nodebox.graphics.Path.line()


        ctx.strokewidth(1.0);
        Path p = new Path();
        for (int i = -100; i < 100; i++) {
            double x = -snapX + (i * distance);
            double y = -snapY + (i * distance);
            p.line(x, -1000, x, 1000);
            p.line(-1000, y, 1000, y);
        }
        ctx.drawpath(p);
    }

View Full Code Here


        Path p = new Path();
        for (int i = -100; i < 100; i++) {
            double x = -snapX + (i * distance);
            double y = -snapY + (i * distance);
            p.line(x, -1000, x, 1000);
            p.line(-1000, y, 1000, y);
        }
        ctx.drawpath(p);
    }

}
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.