DrRacket

Ana Arribasplata
Kirtan Patel
December 8, 2014

Overview

We are creating a Paint application. The user will be able to choose different colors and shapes.

Screenshot

Attach:ana Δ's-screenshot.png

(You may attach a PNG, GIF, or JPG file. Please note the Attach: syntax for doing this. After you save the wiki page, you will see the Attach: link with a blue triangle. Click on the link, and then you will be brought to a page where you can upload the attachment. After you upload the attachment, the link goes away and you see the image instead.)

Concepts Demonstrated

  • Lambda Function is used to provide access to the mouse events.

External Technology and Libraries

I have used the picturing-programs library. This library is a combination of the image teachpack and the universe teachpack.

Favorite Lines of Code

Each partner should identify a favorite line of code, Scheme expression, or entire procedure written by himself / herself in the entire project, and explain what it does. E.g.:

  • Partner One: (string-join (reverse (string-split (read-line my-in-port))) This code reads a string of text, splits it into a list of words, reverses the order of the words in the list, and then joins it back into a single string.
  • Partner Two:
    (let* ((expr (convert-to-regexp (read-line my-in-port)))
                 (matches (flatten
                           (hash-map *words*
                                     (lambda (key value)
                                       (if (regexp-match expr key) key '()))))))
      matches)
    

This block of code reads in a regular expression and uses it to match against a pre-existing hash-map named *words*.

Technology Used Block Diagram

Create a simple block diagram of your software system that illustrates the major technical components and how they interact. Indicate which partner did which part of the work by putting an individual's initials inside the component(s) for which that person was primarily responsible. E.g.:

Additional Remarks

Please use this area to include any additional information you would like to include that did not fit into any of the previous categories.

The total write-up, including screen shot and block diagram, should be two to three pages in length (when printed).