CSC302 2007S, Class 07: Getting Started with Script-Fu Overview: * About this week. * Lab. Admin: * Thursday at 4:30, CS Extra on a Web-Based Campus Map. * Come support Eric and Monica * Come make fun of Jonathan, anyway * I've removed your names from all of the readings pages. From now on, I'll simply send you your grade via email. (Q&A will still end up on those pages.) * Yes, you need to respond to readings by SamR, too. * Today's responses will be accepted late. * Are there questions on HW3? * A few of you have mentioned that you'd like to discuss HW2. * What questions do you have? * Wednesday's reading is only available online. * Since it's mine, I need not worry about copyright issues. * It's less dense, so I'm not sure you need to mark it up. * Available through the HOG link. * Friday's reading will be available on Wednesday. ----- /About this Week/ * What * Playing with Script-Fu and the GIMP * Lots of lab-based stuff * Plus some prepartory readings * Based closely on 151 stuff. * Why * Reflect on different kind of language * Scripting language * Domain: Graphics * More experience with HOP * A key aspect of functional languages * Functions that have other functions as parameters * Functions that return other functions as values * Key examples: * compose * map * fold - insert a binary operator between pairs of values * apply * left-section and right-section * Schedule: * Today: Get your feet wet with Script-Fu * Wednesday: Pixel-oriented tasks * Friday: Drawing-oriented tasks (representing drawings) Detour: OOP vs FP * Vector foo; * (map (lambda (x) (* x x)) foo) * Vector grades; * (map (lambda (x) (x.increment(3))) grades) /Lab Q&A/ * Why do some functions affect only an image, and others affect the global drawing space? * Why aren't the functions all documented?