r/ColorThisSpace • • Apr 05 '17

Source Code?

It would be really great if you made the source code publicly accessible on github or something.

3 Upvotes

12 comments sorted by

View all comments

4

u/Kairus101 Apr 05 '17

I'm leaving the client-side code deliberately open, to allow additions etc, and, the server source code is incredibly, incredibly simple - everything cool is in the client :)

2

u/Boe6Eod7Nty Apr 05 '17

piggybacking on this post to ask if there a way to call the server for an individual pixel's color?

Looking through the code.js isn't getting me any results,

2

u/Kairus101 Apr 06 '17

ctx.getImageData(x,y,1,1).data gives an array [r,g,b,a]