phoria.js
phoria.js copied to clipboard
What is difference beetween points and edges?
What is difference beetween points and edges? How to draw simple path with y:0 on canvas?
A Point is a coordinate(x,y,z) which do not meet with some other adjacent or far coordinate(x,y,z) to form a new line or arc whereas edges are the path that connects two points. For creating a path, use JSON instead to store coordinate points(x,y,z) as
var path_pts = {{x:1,y:0,z:1},{x:2,y:0,z:1},{x:3,y:0,z:1},{x:4,y:0,z:1},{x:5,y:0,z:1}}; //and so on...
now start a for loop and iterate over json in createEntity method to form a simple path with y:0 Hope it helps!!!
I try but dont work