Assignment 29 — image manipulation

Due Tuesday, April 27


Module cw.py


Function rotate( original )


Function find( nspot, nw, nh )

originaloriginal

Clockwise rotation

  • So, knowing the y-coordinate of a pixel in the new image tells you how to calculate the x-coordinate of the source pixel in the original image.

Testing

mandrill
mandrill

Background

 


  🦆 © 2022 Jim Cohoon   Resources from previous semesters are available.