Assignment 31 — image manipulation
Due Friday, November 20
Module grey.py
- To implement function
color()
to support the greyscaling of an image.
Function color( p )
- Returns a new pixel whose RGB values are
(m, m, m)
wherem
is is the integer cast of.299r + .587g + .114b
, andr
,g
, andb
are the RGB values of pixelp
| |
© 2020 Jim Cohoon | Resources from previous semesters are available. |