Mediascripting on the Web (CSC 195 2014F) : Outlines

# Outline 02: Math with Images: An Introduction to psaifr

Held: Thursday, 30 January 2014

Summary

We consider some basics of a simple Racket library I've written for playing with the (Problem Solving + Abstract Images + Functions) (ImageMath?) model.

Related Pages

Overview

• Project overview.
• Primary Scheme procedures.
• Building image functions.

• Yes, there were some interesting Git issues. And we'll learn a bit from looking at them.
• I'd encourage you to attend Friday's CS table.
• Given how my semester has started, it seems unlikely that I'll be able to get readings done for very many classes.
• But I will try to set up some appropriate lab experiences.
• First- and Second-year students: The TC Corps is recruiting! Ask one of the TCCs (Christine, Hannah, Tyler, and Sydney, I think).
• Assignments:

## Overview

• PsAiF/R (or just `psaifr`) is my quickly cobbled-together system for exploring the model I have for joining Problem Solving, Abstract Images, and Functions. The "/R" is because it's in Racket.
• It was really a quick hack, so the interface is a bit inconsistent.
• We typically use lists (or single symbols) to describe the functions.

Main Procedures

• `(psaifr-greyscale-image FUNCTION WIDTH HEIGHT BORDER)`
• `(makefun SEXP)`
• `(psaifr-greyscale-illustration SEXP SIZE FONTSIZE)`

Building functions

• Zeroary: -1, 0, 1, x, y, ...
• Unary: -, abs, sign, sine, cosine, anything else that makes sense
• Binary: , add (not +), wrap, *anything else that makes sense

## Lab

Copyright (c) 2014 Samuel A. Rebelsky.

This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit `http://creativecommons.org/licenses/by/3.0/` or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.