phoria.js icon indicating copy to clipboard operation
phoria.js copied to clipboard

What is difference beetween points and edges?

Open stoskoverflowcomunity opened this issue 10 years ago • 2 comments

What is difference beetween points and edges? How to draw simple path with y:0 on canvas?

stoskoverflowcomunity avatar Jan 10 '15 13:01 stoskoverflowcomunity

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!!!

AnkurChoraywal avatar Jan 28 '15 15:01 AnkurChoraywal

I try but dont work

APdevelopments avatar Jan 28 '15 22:01 APdevelopments