Commit Graph

14 Commits

Author SHA1 Message Date
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
Stephen Bloch
c769481d9d Previous commit mistakenly exposed a debugging function "show-cache".
It is no longer exported.
2012-04-29 07:31:17 -04:00
Stephen Bloch
2df9ca8789 Added fold-image and fold-image/extra functions, as well as tests for
them.
2012-04-28 18:09:57 -04:00
Stephen Bloch
656713cbcf Enlarged cache for get-pixel-color from one image to 3, so you can
alternate among three images without thrashing and re-rendering.
2012-04-28 18:09:57 -04:00
Stephen Bloch
2d2f013465 Updated some comments; no effect on running code. 2012-04-25 17:05:56 -04:00
Stephen Bloch
924d510746 Changed the transparency of some bundled images. 2012-04-25 17:04:39 -04:00
Stephen Bloch
39629e8e99 map-image and map-image/extra now give their function argument x and y
coordinates, or not, depending on the arity of that function.  This
enables one to write a simple function from color -> color and
immediately map it on an image.  For the situation in which the
function is location-dependent, one can still write a function from
x,y,color -> color and map this on the image.
2011-12-02 07:09:37 -05:00
Stephen Bloch
753dfa3cb2 Fixed error messages, added tests for type errors. 2011-10-02 22:54:34 -04:00
Stephen Bloch
09b0a46dcd Corrected a few error messages. 2011-09-24 12:49:05 -04:00
Stephen Bloch
52527d8a95 Fixed some more error messages. 2011-07-12 07:08:47 -04:00
Stephen Bloch
904ef63ce2 Fixed some more error messages. 2011-07-11 07:25:46 -04:00
Stephen Bloch
d3df33b023 Improved error messages to specify actual argument as well as expected
type.  Still produces one check-error failure because of bug in
make-color.
2011-07-11 07:25:46 -04:00
Stephen Bloch
79778e0a1e Added some illegal-argument tests to map-image.rkt.
Added test cases for these to map-image-bsl-tests.rkt.
Modified an error message from colorize, and its test cases.
Added map-image/extra and build-image/extra functions.
2011-05-12 00:51:02 -04:00
Stephen Bloch
d3d8659183 Moved most files into private directory.
Modified main.rkt, picturing-programs.scrbl, and test-docs-complete
to reflect the new locations.
2011-04-28 22:13:41 -04:00