lmccart/p5.js — pull request #235 by tafsiri (2014-06-20 18:06:48+00:00)
Title: Fix implementation of Posterize filter. 

Was incorrectly unpacking and repacking rgb vals from an array where they were already separated. Closes #234.

Should be correct now. I compared results with the same image in processing-java and got the expected result, previous code was buggy but looked correct anyway for low levels.