UNPKG
potrace
Version:
latest (2.1.8)
2.1.8
2.1.6
2.1.5
2.1.4
2.1.2
2.1.1
2.0.1
2.0.0
1.1.0
1.0.0
Potrace in Javascript, for NodeJS
github.com/tooolbox/node-potrace
tooolbox/node-potrace
potrace
/
lib
/
types
/
Quad.js
11 lines
(8 loc)
•
165 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
'use strict'
;
function
Quad
(
) {
this
.
data
= [
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
]; }
Quad
.
prototype
.
at
=
function
(
x, y
) {
return
this
.
data
[x *
3
+ y]; };
module
.
exports
=
Quad
;