This is my first foray into utilizing a third party library - github.com/gorhill/Javascript-Voronoi/blob/master/rhill-voronoi-core.js
The project file is here - dropbox.com/s/dr6abkphr8k4egd/Noise%20graph.c3p
I have a Construct array of size n,2,1 where x and y coordinates are recorded at y=0 and y=1 respectively, while the x index is each set of coordinates.
The script requires input in the following format - [{x:300,y:300}, {x:100,y:100}, {x:200,y:500}, {x:250,y:450}, {x:600,y:150}] - which I believe is a JSON array of objects (I'm also not particularly familiar with JSON).
I've got another possibly unrelated issue where in the project the contents of the Construct array can be utilized fine in the project and when viewed in the debug preview, but when setting text to Array.asJSON the output is empty of contents.
How should I best proceed to format and pass the data in the Construct array to the script function? I'm not against storing the coordinates in a different manner if it would simplify interfacing with the script, I'm just most familiar with using Construct arrays.