From 52eaf29993a2f56586bc903226e174a35f6ae60a Mon Sep 17 00:00:00 2001 From: Danny Yoo Date: Sat, 23 Jul 2011 00:57:58 -0400 Subject: [PATCH] just in case, adding scaling factor to make it easy to shrink --- racketcon/bootstrap.gif | Bin 0 -> 7406 bytes racketcon/fact.rkt | 3 --- racketcon/hello.xhtml | 4 ++-- racketcon/pacman.xhtml | 4 ++-- racketcon/rain.xhtml | 4 ++-- racketcon/talk.rkt | 15 ++++++++++----- 6 files changed, 16 insertions(+), 14 deletions(-) create mode 100644 racketcon/bootstrap.gif diff --git a/racketcon/bootstrap.gif b/racketcon/bootstrap.gif new file mode 100644 index 0000000000000000000000000000000000000000..fc5fc93b31ced2c54c8aa9e6f4cc64bd333399a7 GIT binary patch literal 7406 zcmXY#^;?sT!^Q8|?gceq!06Epqd{tPNQ{_-0%J4+PH9CLjf9L81aSx|VN6uS9z$&X zPDRDQXDBF`vq62_`~2|!1Ls`VIp>FSef$IcoSc)ofG*&5IWU;05tVa1$CQ|7uB1dV zb@t5z06<9!JvlL9qKq3$)&wEc-@ku3ExYsmllQqn{vqM~lvFWA8HGZkw@#oTkYT8xBZra0p;L_&GpNJ^ zi5egTA5YcFG9iXCxfm1_kuegMI})=?M) zU;xn3){f92fFKl^IToHiyv1Az1;gnk#Qu2A%_c-c%MdE93WJe?P*7C%aeqs~r%#{u zZ&Dvf)UJr=I80z#}6i|55#LkZaxyV z`BCDqS(*97nTbAy&e%anIC1G=%LxJb z+ARyI7e1neg%=jL5WnIbo6kS`PL>}w#^`4YJ?z&?@l73)>v==+ZSWm-7SL5T5SOg!&$~)`%2-^>5v&T!m z`OHyXZN6(jlC;H;xk9Sc*6UZujGwcSv-s>Be3U3N2pd*anKj-Jb-lc2eZ z4*DaDhP$iN=~nhD_ty@kO_y|)U43Hv{KwxtZZoO+-g@@fwetP@8jdachh*x~q>oTr zeQq-6uD5&NjVwWGDZZQ%^Tz`#xq;GzKeETrQneFJosHV%6BZl@RkmmP)zU9LWwzV8 z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lY=6 literal 0 HcmV?d00001 diff --git a/racketcon/fact.rkt b/racketcon/fact.rkt index daa6c20..fe8ef50 100644 --- a/racketcon/fact.rkt +++ b/racketcon/fact.rkt @@ -6,6 +6,3 @@ 1] [else (* x (fact (sub1 x)))])) - - -;;(printf "test: ~s\n" (fact 4)) \ No newline at end of file diff --git a/racketcon/hello.xhtml b/racketcon/hello.xhtml index a1146bc..2f8027b 100644 --- a/racketcon/hello.xhtml +++ b/racketcon/hello.xhtml @@ -2,7 +2,7 @@ - Example + Hello - \ No newline at end of file + diff --git a/racketcon/pacman.xhtml b/racketcon/pacman.xhtml index 041870c..4310bb9 100644 --- a/racketcon/pacman.xhtml +++ b/racketcon/pacman.xhtml @@ -2,7 +2,7 @@ - Example + Pacman - \ No newline at end of file + diff --git a/racketcon/rain.xhtml b/racketcon/rain.xhtml index 3bff218..bb0a36d 100644 --- a/racketcon/rain.xhtml +++ b/racketcon/rain.xhtml @@ -2,7 +2,7 @@ - Example + Rain - \ No newline at end of file + diff --git a/racketcon/talk.rkt b/racketcon/talk.rkt index d685e7a..020470a 100644 --- a/racketcon/talk.rkt +++ b/racketcon/talk.rkt @@ -3,6 +3,8 @@ (require (planet dyoo/whalesong/js)) (require (planet dyoo/whalesong/world)) +(define scaling-factor .75) + ;; A slide is either a simple string or an image. (define font-size 50) @@ -19,14 +21,16 @@ (scale 2 (image-url "file:///home/dyoo/work/whalesong/racketcon/plt-logo.png")) (square 20 "solid" "white") (text "Danny Yoo (dyoo@hashcollision.org)" 50 "darkblue")) - "Why Whalesong?" + (above (text "Why Whalesong?" font-size "black") + (square 20 "solid" "white") + (scale 2 (image-url "file:///home/dyoo/work/whalesong/racketcon/bootstrap.gif"))) "World programs on the web" (above (text "Reusing Racket's compiler..." font-size "black") (square 20 "solid" "white") (text "Hello world?" (floor (* font-size 2/3)) "black")) - "Web programs can use Racket" - "What's missing?" - "http://hashcollision.org/whalesong")) + "Web programs can use Racket too!" + "What's next?" + (text "http://hashcollision.org/whalesong" 80 "black"))) @@ -51,6 +55,7 @@ (define (draw w) + (scale scaling-factor (let ([a-slide (list-ref slides w)] [bg (BACKGROUND)]) (cond @@ -64,7 +69,7 @@ (place-image a-slide (quotient (image-width bg) 2) (quotient (image-height bg) 2) - bg)]))) + bg)])))) (define (tick w) w)