http://www.dukelearntoprogram.com/course1/example/index.php
// write your code here //Function returns chopped pixel color values function pixchange(pixval){ var x = Math.floor(pixval/4) * 4; return x; } //Code section chops bits of pixel colors of image that hides another image function chop2hide(image){ for(var px of image.values()){ px.setRed(pixchange(px.getRed())); px.setGreen(pixchange(px.getGreen())); px.setBlue(pixchange(px.getBlue())); } return image; } //Code Section used to shift bits of pixel colors of image to be hidden function shift(im){ var nim = new SimpleImage(im.getWidth(),im.getHeight()); for(var px of im.values()){ var x = px.getX(); var y = px.getY(); var npx = nim.getPixel(x,y); npx.setRed(Math.floor(px.getRed()/64)); npx.setGreen(Math.floor(px.getGreen()/64)); ...