


red = red * 1.5MyPicture3 of Picturesunset method (similar to decreaseRed
in MyPicture1)MyPicture3, choose new
MyPicture3(), drag into world on leftpick from
Picture methodssunset()
double red = pix.getRed(); red = red * 1.3; if (red > 255) red = 255; pix.setRed(red);
if
(red > 255) red = 255; statement? 
negative methodnegative twice?
setRed,
setGreen, setBlue separately. Color object with the right colors
Color inverse = new Color(red, green, blue);
setColor:
pix.setColor(inverse);

Color grayColor = new Color(intensity, intensity, intensity) pix.setColor(grayColor);
double intensity = 0.333 * red + 0.333 * green + 0.333 * blue;
double intensity = 0.299 * red + 0.587 * green + 0.114 * blue;
grayscale to the MyPicture4 class. grayscale e transformation. negative transformation.
