Commit Graph

246 Commits

Author SHA1 Message Date
Eli Barzilay
1e55f71f8a Two more #lang racket' -> #lang racket/base'. 2012-11-07 11:34:33 -05:00
Eli Barzilay
672910f27b Lots of bad TAB eliminations.
I started from tabs that are not on the beginning of lines, and in
several places I did further cleanings.

If you're worried about knowing who wrote some code, for example, if you
get to this commit in "git blame", then note that you can use the "-w"
flag in many git commands to ignore whitespaces.  For example, to see
per-line authors, use "git blame -w <file>".  Another example: to see
the (*much* smaller) non-whitespace changes in this (or any other)
commit, use "git log -p -w -1 <sha1>".
2012-11-07 11:22:20 -05:00
Eli Barzilay
95679bdab5 Switch from except' (from racket/unit') to #:except' in 2htdp/private'.
This is used by the `function-with-arity' macro, and the use of `except'
looks like something that is better done with a keyword.  I think that
this change should be fine since it's a private function.
2012-11-06 13:29:09 -05:00
Eli Barzilay
5aca765989 racket' -> racket/base' switches in htdp' and 2htdp'.
All of these look safe.  Also, see comment in `2htdp/batch-io' about the
splitting thing (which should probably be revised with the extensions to
`racket/string').
2012-11-06 13:29:09 -05:00
Matthias Felleisen
f4576c4941 fixed pad equality; Closes PR 13106 2012-09-13 07:33:41 +02:00
Matthias Felleisen
48e07fb2ab send world's name to universe properly, Closes PR 12857 2012-06-25 19:15:08 -04:00
Matthias Felleisen
6b2419f100 fixed error messages for create-world 2012-06-09 13:00:09 -04:00
Eli Barzilay
17090fca4f A bunch of fprintf' -> eprintf' conversions (and a few related things). 2012-05-06 12:06:00 -04:00
Matthew Flatt
68e005fb2c racket/draw: make-immutable-{color,brush,pen} => make-{color,brush,pen}
Also, use keywords for `make-pen' and `make-brush'.

Adding `make-pen' and `make-color' creates many conflicts among
teaching libraries, such as `2htdp/image'. These are easy to fix
up in the tree, but adding such obvious names to `racket/draw'
may create other compatibility problems, so we might have to reconsider
the names.

In consultation with Asumu.
2012-05-01 21:04:40 -06:00
Robby Findler
1b0df5d48d fix rotate so that it can accept non-integral arguments
closes PR 12632
2012-03-21 19:45:45 -05:00
Matthias Felleisen
ad50f144df fixed error message for shadowing clause names; Closes PR 12621 2012-03-08 11:12:42 -05:00
Robby Findler
ed22a630fd fix predicates to return booleans 2012-02-07 20:33:05 -06:00
Robby Findler
6633387827 adjust 'bitmap' so that it saves paths as a list of strings that
get interpreted as a collection at runtime, instead of saving a path.

closes PR 12548
2012-02-07 15:50:53 -06:00
Robby Findler
d93818dd61 Change 'bitmap' to use collection-file-path (with its new #:fail) argument,
so that it picks up linked collections.

closes 12424

merge to the release branch, please
2012-01-11 13:16:46 -06:00
Matthias Felleisen
d9176df246 replaced gamepad image with higher resolution version 2012-01-09 19:13:52 -05:00
Matthias Felleisen
32b7a1b418 created pad=, exported it, documented game pad minimally 2011-12-31 11:28:11 -05:00
Matthias Felleisen
5867589993 initial stage of game pad, need to turn play file into test 2011-12-31 11:28:10 -05:00
Matthias Felleisen
c221131254 scheme/racket cleanup 2011-12-31 11:28:10 -05:00
Robby Findler
f4b4e00c55 added bitmap/file
closes PR 12466
2011-12-29 22:18:07 -06:00
Matthias Felleisen
00c93a1829 allow strings and symbols for name clause in world; Closes PR12403 2011-11-28 21:31:18 -05:00
Matthias Felleisen
5a3c78a998 universe now terminates properly 2011-11-11 18:53:04 -05:00
Matthias Felleisen
8c91d96c50 added prefab structs to messages that universe can exchange 2011-11-11 18:53:03 -05:00
Eli Barzilay
d77a89ac42 Avoid spaces and caps in file names.
(Also fixes a bug, AFAICT, since "SpeechBubble" wasn't uniformly.)
2011-10-28 15:15:17 -04:00
Robby Findler
f48e12240a clean up the docs for the Planet Cute images 2011-10-28 13:51:31 -05:00
Robby Findler
dc24fbf62d added the Planet Cute images to the (new) 2htdp/planetcute library 2011-10-27 18:50:59 -05:00
Robby Findler
0dff5ca92b special case the four cardinal directions during rotation so they rotate
exactly (this also makes flip-horizontal and flip-vertical work equally
well)

closes PR 12323
2011-10-26 16:36:07 -05:00
Matthias Felleisen
2a43c68dd7 on-release works without on-key; Closes PR12291 please propagate 2011-10-16 22:46:22 -04:00
Robby Findler
0e2bd262a8 add a missing degrees to radians conversion in triangle/ass
closes PR 12199
2011-09-14 12:35:53 -05:00
Matthias Felleisen
fcf4936592 improved error messages when handlers fail check-with tests 2011-09-01 18:27:25 -04:00
Robby Findler
1f02106318 2htdp/image
normalize the internal representation of bitmaps so it always uses an alpha
bitmap instead of sometimes using a mask bitmap and sometimes using alpha.
This also fixes a bug where the library would get consfused when it saved
a bitmap to a file, since it didn't record if it was an alpha bitmap or not.

This improves the save files that contain images, cutting the size for bitmaps
in half (bringing the drracket save file down to a mere 25x larger than the
png file format for the example I was using...)
2011-08-22 19:09:52 -05:00
Sam Tobin-Hochstadt
3f3f99d849 Revert "Give appropriate inferred names to `big-bang' clause RHSs."
This reverts commit 5c95e8d46d which was accidentally committed.
2011-08-22 17:37:30 -04:00
Sam Tobin-Hochstadt
5c95e8d46d Give appropriate inferred names to `big-bang' clause RHSs. 2011-08-22 17:04:16 -04:00
Robby Findler
d1e3765af7 added save-svg-image 2011-08-07 19:35:29 -05:00
Matthias Felleisen
a51e2494b6 bug fix: when the initial world is a final world, big-bang should use only the final draw handler -- if it exists 2011-08-05 12:46:25 -04:00
Matthias Felleisen
50386760dd added launch-many-worlds/proc; Closes 10559 2011-08-03 11:20:05 -04:00
Guillaume Marceau
adf965e92a Undoes the 'produces -> return' part of commit c31d352f, keeping the 'changes -> mutates' change and the assorted bug fixes it contained. 2011-07-17 16:48:12 -04:00
Matthias Felleisen
59499b84bd optional limit for number of ticks 2011-07-16 13:59:55 -04:00
Matthias Felleisen
562252f589 fixed bug in exception handling for drawing; Closes PR 12044 2011-07-15 12:24:39 -04:00
Guillaume Marceau
c31d352f2b Standartize the vocabulary to "the function returns" and "set! mutates" 2011-07-15 03:27:27 -04:00
Stephen Bloch
83fd1e968d Corrected an error message that said it wanted a real, but actually
expected an integer.
2011-07-14 13:01:11 -04:00
Matthias Felleisen
40948ee653 sk requested empty scenes with optional background color 2011-07-14 12:03:20 -04:00
Matthew Flatt
8271f7b182 export `step-count?'
Merge to 5.1.2
2011-07-09 08:47:21 -06:00
Matthias Felleisen
4698e94127 providing a name for tick handler, Closes PR 12027 2011-07-06 23:09:27 -04:00
Guillaume Marceau
9706920055 Updated the error messages of the world and universe teachpacks. 2011-07-06 05:35:27 -04:00
Jay McCarthy
de9aec3051 Allowing paths in big-bang's record? argument and adjusting a test to make use of that feature. It would also be good to allow bitmap to take paths, but that is non-trivial, because of its assumption that non-literal strings are module paths 2011-07-02 20:13:39 -07:00
Matthias Felleisen
a1c219a068 eliminated superfluous require for-syntax, refactored and cleaned up; fixed bug in test? 2011-07-02 13:34:02 -04:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Eli Barzilay
40124a0619 A long overdue scan to eliminate files without terminating newlines.
(DrRacket should really do that.)
2011-06-28 02:01:41 -04:00
Matthias Felleisen
b00b2e318a last world draw shouldn't restore old draw; Closes PR 11994 2011-06-22 10:53:14 -04:00
Matthias Felleisen
b74c9f9df3 ensure that dimensions of canvas are below 2000 by 2000; closes PR 11907 2011-05-09 17:59:23 -04:00