draw.clearColor now takes a object with r, g, b values
Added res/script/patternTest.js