Commit Graph

62 Commits

Author SHA1 Message Date
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
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
Robby Findler
f4b4e00c55 added bitmap/file
closes PR 12466
2011-12-29 22:18:07 -06: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
Robby Findler
0e2bd262a8 add a missing degrees to radians conversion in triangle/ass
closes PR 12199
2011-09-14 12:35:53 -05: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
Robby Findler
d1e3765af7 added save-svg-image 2011-08-07 19:35:29 -05: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
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04: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
Robby Findler
a20809c347 added bitmap/url to 2htdp/image 2011-01-18 10:54:55 -06: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
4f19b0d454 add a coercion so that equality is simpler for things produced by 'bitmap' 2011-01-02 06:51:36 -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
4917d2af4a added freeze to 2htdp/image 2010-12-17 13:51:10 -06:00
Sam Tobin-Hochstadt
8a8a8dbe4b Separate snip% from the gui 2010-12-17 12:32:26 -05:00
Robby Findler
e0b425e5d8 change more cross-collection requires 2010-12-17 10:02:38 -06:00
Robby Findler
57fe568a5e fixed a bug 2010-11-25 06:55:00 -06:00
Robby Findler
6e7530ff86 added empty-image 2010-11-25 06:55:00 -06:00
Matthew Flatt
05cfffdf9e v5.4.99.1, executable-yield-handler', and make-bitmap' etc. 2010-11-05 15:54:50 -06:00
Robby Findler
ae5cd21a1b 2htdp/image: changed the way drawing works, specifically avoid normalization before drawing to preserve sharing 2010-11-04 13:55:41 -05:00
Robby Findler
d082e805b2 fix bug in error checking for save-image 2010-10-31 10:12:04 -05:00
Robby Findler
3782c2e749 change save-bitmap in 2htdp/image so that is uses the width and height of the image by default, but also so it accepts two optional arguments to change that. 2010-10-28 17:20:43 -05:00
Robby Findler
35f64145ca adjusted the way caching works for bitmaps to be more effective 2010-10-22 06:45:57 -05:00
Eli Barzilay
ee138cf2cb Some repeated "and and"s and "the the"s, and two more typos.
Closes PR 11229.
2010-09-20 15:38:18 -04:00
Robby Findler
31685bc496 Adjusted 2htdp/image's frame primitive so that it does not draw
outside of the bounding box.
2010-09-09 06:58:55 -05:00
Robby Findler
9105b92240 added overlay/pinhole and underlay/pinhole 2010-09-07 09:35:21 -05:00
Robby Findler
6f0b6eebbe Added pinholes as x-place and y-place arguments 2010-09-06 20:39:13 -05:00
Robby Findler
d10cd2e6fa preserve pinholes in overlaying and related functions
(also started to add "pinhole" as a place, but not done with that yet)
2010-09-06 20:39:12 -05:00
Robby Findler
cc96864868 added pinhole support to cropping primitives and to frame 2010-09-06 20:39:12 -05:00
Robby Findler
9b720b9c0d added pinhole support to add-line, add-curve, scene+line, and scene+curve 2010-09-06 20:39:12 -05:00
Robby Findler
9087348b7e added pinhole support to the flipping prims 2010-09-06 20:39:11 -05:00
Robby Findler
157e9c2512 made rotation work with pinholes 2010-09-06 20:39:11 -05:00
Robby Findler
e3b51e8cf4 made scaling work with pinholes 2010-09-06 20:39:11 -05:00
Robby Findler
4fa7fa2994 Added docs and exported basic pinhole manipulation primitives 2010-09-06 20:39:10 -05:00
Matthew Flatt
081fc3bad5 fix 2htdp/image bitmap rotation direction 2010-09-04 16:43:38 -06:00
Robby Findler
1fa6be75b5 added image->color-list and color-list->bitmap 2010-09-04 13:52:49 -05:00
Matthew Flatt
e0d9d2565c fix problem with rotation on images such as bitmaps
and replace internal `bring-between' with an efficient version
 Closes PR 11124
2010-08-30 20:15:20 -06:00
Robby Findler
3d5843aa81 fixed pen and color so they signal errors properly 2010-08-28 08:52:59 -05:00
Robby Findler
405fded9c3 change empty scene so that it draws the border for the scene inside the scene,
instead of using the usual rectangle "right/bottom outside" drawing
(hopefully) closes PR 11139
2010-08-28 07:57:52 -05:00