Commit Graph

218 Commits

Author SHA1 Message Date
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
Matthias Felleisen
f2a475eb43 critical bug fix in registration process; please propagate 2011-04-25 11:05:42 -04:00
Matthias Felleisen
8dbc1994bc small change to registration format 2011-03-28 20:14:46 -04:00
Matthias Felleisen
5e7ac9a038 fix naming of name of universe state window 2011-03-28 20:14:45 -04:00
Matthias Felleisen
5fee2676dc leftover debugging aide 2011-03-28 20:14:44 -04:00
Eli Barzilay
a3d00a910a More LGPL permissions from Chongkai, Neil, and Olin.
Also, removed the LGPL blurbs from srfi/1, and redirect to the Racket
license.  (To avoid possible future issues with license changes, such as
LGPL version.)
2011-03-03 11:09:09 -05:00
Robby Findler
6fff26ad12 2htdp/image: relax the constraints on 'crop' so that you can crop outside the bounding box 2011-02-21 05:28:37 -06:00
Robby Findler
c1668d894e added overlay/align, underlay/align, overlay/align/offset, and underlay/align/offset 2011-02-20 15:37:16 -06:00
Robby Findler
5822f1e95f started on overlay/offset 2011-02-20 15:37:15 -06:00
Robby Findler
eb45a6f15b 2htdp/image: place-image/align doesn't really need to check that the second image argument has a pinhole 2011-02-06 07:25:08 -06:00
Robby Findler
e05e6efc7a added a missing syntax error check 2011-01-29 11:20:12 -06:00
Robby Findler
0dc71e9405 improve the bitmap function in 2htdp/image
related to PR 11362
2011-01-24 16:26:15 -06:00
Matthias Felleisen
814a847323 made to-draw/on-draw in big-bang mandatory; Closes PR 11663 2011-01-22 12:07:24 -05:00
Robby Findler
a20809c347 added bitmap/url to 2htdp/image 2011-01-18 10:54:55 -06:00
Mike Sperber
85e02db1ad Tweak world to enable interoperability with DMdA gui teachpack. 2011-01-16 12:26:50 +01:00
Robby Findler
9964e28969 added a check in bitmap to make the file argument exists 2011-01-11 08:06:26 -06:00
Robby Findler
61664690b5 make the proper test to be able to call un/cache-image
closes PR 11598
2011-01-07 11:22:28 -06:00
Robby Findler
1d2b837603 adjusted 2htdp/universe (and world) so that it uses the cache disabling support from 2htdp/image
(the caching is not helping when drawing animations; it just allocates extra bitmaps)
2011-01-06 14:24:03 -06:00
Robby Findler
4f19b0d454 add a coercion so that equality is simpler for things produced by 'bitmap' 2011-01-02 06:51:36 -06:00
Robby Findler
7716851cde 2htdp/image: added support for alpha as a mode? argument 2011-01-01 20:01:50 -06:00
Robby Findler
54c337e5d3 2htdp/image: use erase instead of clear to zero out a bitmap 2010-12-27 21:51:16 -06:00
Robby Findler
835f7753dc generalize the color structs to have an alpha field and then use that in the bitmap conversion functions 2010-12-27 21:51:14 -06:00
Robby Findler
7282e19178 tightened up the check on polygon to make sure the posns contain reals
closes PR 10997
2010-12-25 20:33:33 -06:00
Robby Findler
2dc15061a8 adjust Sam's edit so the file is now properly indented 2010-12-17 13:53:03 -06:00
Robby Findler
4917d2af4a added freeze to 2htdp/image 2010-12-17 13:51:10 -06:00
Sam Tobin-Hochstadt
24ea7d34fc Fix use of 'fn-name in 2htdp/image error messages. 2010-12-17 12:37:32 -05:00
Sam Tobin-Hochstadt
8a8a8dbe4b Separate snip% from the gui 2010-12-17 12:32:26 -05:00
Robby Findler
4d04aa2b97 generalize define/chk to work with case-lambda-style functions 2010-12-17 10:02:40 -06:00
Robby Findler
e0b425e5d8 change more cross-collection requires 2010-12-17 10:02:38 -06:00