Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js 1d index to 2d coord

y = index / width;
x = index % width;
Source by www.cyotek.com #
 
PREVIOUS NEXT
Tagged: #js #index #coord
ADD COMMENT
Topic
Name
7+3 =