Code Monkey home page Code Monkey logo

graphical-presentation-of-information-using-racket-and-its-libraries's Introduction

Graphical Presentation of Information Using Racket and Its Libraries

##Team Lapsus OPL S15 Final Project @UMass Lowell CS ###Alex Nevers and Merve Tuccar

##Overview This project uses multiple Racket libraries to present an aesthetically pleasing and informative presentation on military grade A.I. There are 10 slides in total. The project was challenging because the documentation and examples on the libraries we used was very limited. We have investigated answers to our initial problem statement which was "How can a well-designed and informative slideshow be created in Racket?", and tried to come with an illustration demonstrating the capabilities of Racket slideshow library as much as possible.

alt text

##Concepts Demonstrated

  • Usage of Racket libraries
  • Constructing procedures using the special form lambda
  • Creating local variables using the special form let
  • Compound procedures
  • Procedures as arguments (HOP)
  • Conditional expressions and predicates
  • Symbolic Data (quotation)

##External Technologies

###Links

  • Images to be used are here.
  • Dropbox folder containing source code and image w/corect file names are here.
  • Screencap of WIP slides here.

##Favorite Lines of Code

####Alex The below code is the main method used throught the slideshow for laying out and wrapping text. This code is demonstrated in slide 2, and though it doesnt look incredibly impressive, I felt pretty successful after figuring out how to overlay images and text in a clean, legible way.

(lt-superimpose 
    (hc-append
              (para #:align 'left #:fill? #t #:width 470 "         ")
              (bitmap  "cyberdyne_behind_the_scenes.jpg")) 
  (vl-append (item #:bullet (bitmap (arrowhead 20 0)) "Artificial Intelligence") 
              (vl-append 
                         (vl-append (item #:bullet (bitmap (arrowhead 20 0)) "Neural Network Processes")
                                    (item #:bullet (bitmap (arrowhead 20 0)) #:width 470 "Advanced Robotics for Medicine"))
                         (vl-append (item #:bullet (bitmap (arrowhead 20 0)) "Consumer Products")
                                    (item  #:bullet (bitmap (arrowhead 20 0)) "Defense"))))))

####Merve The below code for setting slide background color is my favorite part because it not only uses special forms like lambda and let but also makes our slides colorful and fun. Source

(current-slide-assembler
  (let ([orig  (current-slide-assembler)])
    (lambda (title sep body)
      (let* ([pct  (if (background-image)
                       (background-image-pict)
                       (inset (blank 1024 768) (- margin)))]
             [pct  (add-slide pct (orig title sep body))]
             [pct  (if (slide-number) (add-slide-number pct) pct)])
        pct))))

##Additional Remarks

  • Song curently does not stop after slideshow ends. The only way to kill it is to close Dr.Racket. Comment out (play-sound) line if you dont want to deal with it. Working on a fix.
  • Images in repo must be in same folder as code to work. Backup copy of images canbe download from dropbox link below-- just move code to the iamge folder before running.
  • Slides are timed to change after twenty seconds. If you attempt to manually navigate the slideshow, slides will appear out of order.

##How to Download and Run

Simply download the latest release from github, ensuring all images and relevant files are located in the same directory as the code and run. let the show run itself and do not attempt to navigaate manually, else slides will appear out of order.

graphical-presentation-of-information-using-racket-and-its-libraries's People

Contributors

crabclawisland avatar mervetuccar avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.