Commit Graph

354 Commits

Author SHA1 Message Date
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
4941aec617 removed unused argument to normalize-image 2010-11-04 13:55:40 -05:00
Robby Findler
d082e805b2 fix bug in error checking for save-image 2010-10-31 10:12:04 -05:00
Robby Findler
e80fb21c7c unbreak test suite 2010-10-31 10:12:03 -05:00
Robby Findler
cc0f246048 unbreak 2htdp/image 2010-10-29 14:55:56 -05:00
Matthias Felleisen
18a81f8552 record images during world program, not events; Closes PR11351 2010-10-28 18:43:19 -04:00
Robby Findler
82d11cfa6c fix up Matthias's tests so they are more drdr friendly 2010-10-28 17:20:43 -05:00
Robby Findler
ebe486886c change 2htdp/image to export image=? 2010-10-28 17:20:43 -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
a744958fd5 added support to the 2htdp/image library for reading files when there is no GUI around.
currently the support is limited to images that can only report their sizes and pinholes and where equal?
signals an error unless the arguments are eq?.
2010-10-28 11:32:14 -05:00
Matthias Felleisen
f600531e50 improved testing for record? 2010-10-27 10:35:11 -04:00
Matthias Felleisen
f876a854c6 partial fix for pr11350 2010-10-27 10:21:36 -04:00
Matthias Felleisen
6457f1e4cc record? is working as it used, plus ability to auto-save images so I can write a test case, Closes PR11348 and PR11349 2010-10-26 19:02:43 -04:00
Robby Findler
35f64145ca adjusted the way caching works for bitmaps to be more effective 2010-10-22 06:45:57 -05:00
Matthias Felleisen
49060ff57c merged two error checking files 2010-10-13 15:07:33 -04:00
Matthias Felleisen
ae04ddc7d9 the mouse and key handler shouldn't be set to defaults; when there are no on-* clauses, they should be ignored 2010-10-13 14:50:55 -04:00
Matthias Felleisen
8fb58bb74e making the stepper (mostly) happy 2010-10-12 18:10:35 -04:00
Matthias Felleisen
0eed02bd0d typo in world.rkt 2010-10-08 16:31:52 -04:00
Matthias Felleisen
58684bbf4e merged keywords back into universe 2010-10-08 16:17:41 -04:00
Matthias Felleisen
995ce61434 to-draw and on-draw check 2010-10-08 16:17:03 -04:00
Matthias Felleisen
96bf9d2518 deleted 2010-10-08 16:16:04 -04:00
Matthias Felleisen
963adb64ce run tests all at once 2010-10-08 14:04:32 -04:00
Robby Findler
05d16d9311 closes PR 11293 2010-10-07 19:36:18 -05:00
Matthias Felleisen
8ef896431a adjusting big-bang and universe so that they call functions and don't expand into object construction 2010-10-07 18:49:43 -04:00
Matthias Felleisen
767d72ed03 re-exported keywords 2010-10-04 20:41:38 -04:00
Matthias Felleisen
8bed0b6a30 function protocol for world creation 2010-10-04 18:22:04 -04:00
Robby Findler
08b9396e2f closes PR 11236 2010-09-21 16:47:55 -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
d2e443ac97 made equality check on images sensitive to pinholes 2010-09-06 20:39:11 -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
986b36d761 added basic pinhole tests 2010-09-06 20:39:10 -05:00
Robby Findler
4fa7fa2994 Added docs and exported basic pinhole manipulation primitives 2010-09-06 20:39:10 -05:00
Robby Findler
5e01ac5537 added a pinhole property to images 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
3704e2d69f added a better explanation of pixels and fixed a bug in save-image 2010-08-28 20:41:58 -05: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
Robby Findler
8d2db5f4bf fixed a bug found by random testing 2010-08-22 20:33:30 -05:00
Robby Findler
720a86052f improved crop so that it doesn't fail when the coordinates are out of range 2010-08-22 15:12:10 -05:00
Robby Findler
f1e38247e0 improved the error message for save-image
closes PR 11076
2010-08-20 17:39:45 -05:00
Matthias Felleisen
b3525b4a2f remove the printf, closes 11094 2010-08-14 12:01:51 -04:00
Jens Axel Søgaard
64c3a98e45 Added triangle/sss, triangle/ass, triangle/sas, triangle/ssa, triangle/aas, triangle/asa, and, triangle/saa. 2010-08-05 18:18:06 +02:00
Robby Findler
6cd277a36f fixed a bug in the saving of bitmaps (and along the way added some randomized tests that found a few other things)
Please merge to release branch.
2010-07-20 22:59:52 -05:00
Robby Findler
070a39d902 fixed a bug in text's color argument, as noted in PR 10998 2010-07-07 13:42:40 -05:00
Robby Findler
a5d969607b fixed PR 10998 2010-07-06 15:26:26 -05:00
Robby Findler
a612830b8e added the radial-star primitive 2010-06-25 20:24:18 -05:00
Robby Findler
132867518c added support for flipping bitmaps 2010-06-18 16:21:14 -05:00
Robby Findler
27bd7934d7 fixed flipping for curves 2010-06-18 16:21:13 -05:00
Robby Findler
ca7bf92054 added basic flipping (bitmaps not done yet) 2010-06-18 16:21:13 -05:00
Robby Findler
22bc8f6d87 a bunch of little fixes to the 2htdp/image library (and related) for sfp submission:
- added in the htdp/image version of the performance test case
- made gui-eval work with things other than slideshow
- extended render-image so that it works on bitmaps and image-snips
2010-06-16 11:58:58 -05:00
Robby Findler
893beb582e adjusted the universe window so that the canvas is shown in the middle of the window when the window resizes 2010-06-10 20:15:17 -05:00
Jay McCarthy
eeef33fa7b Adding ignores 2010-06-04 09:43:36 -06:00
Robby Findler
31b507aa51 Rackety 2htdp/image 2010-05-25 21:35:04 -05:00
Robby Findler
03a3270811 closes PR 10927 2010-05-25 21:35:03 -05:00
Robby Findler
77841f0834 fixes PR 19025 2010-05-24 12:17:40 -05:00
Matthias Felleisen
fe67f369fa prep for debugging 2010-05-24 10:09:01 -04:00
Robby Findler
b319039468 fixed a bug in text so that inexact integers are converted to exact ones 2010-05-22 08:58:54 -05:00
Matthias Felleisen
a106cbecbe bug in read-words/line fixed, please propagate 2010-05-20 13:25:59 -04:00
Matthias Felleisen
391444741f simulate-file for testing readers 2010-05-18 23:00:59 -04:00
Eli Barzilay
7b14a1f585 "Racunit" -> "Rackunit" 2010-05-17 12:07:32 -04:00
Eli Barzilay
bba676d90c Update the text message at the top of WXME files, including the URL.
Also, update the message in existing files.  Change the instructions to
use DrRacket or DrScheme version <previous-version>, and for really old
files (pre-v4), just use 4 for the version.  Also just drop the second
paragraph in these files -- "Most likely, it was created by" is not
needed when for these files we know that this is true.
2010-05-17 00:19:26 -04:00
Matthias Felleisen
461c39b979 universe in line with syntax-parse 2010-05-09 19:33:25 -04:00
Jay McCarthy
bc5cf30ebe Renaming rktunit to racunit 2010-04-30 10:57:32 -06:00
Jay McCarthy
f70ffca756 Renaming schemeunit to rktunit and adding compat layer 2010-04-29 15:00:02 -06:00
John Clements
f81ebbfbf7 Exported save-image per Matthias' request, wrote conservative documentation 2010-04-28 11:48:07 -07:00
Matthias Felleisen
32347bfb56 Merge branch 'master' of git:plt 2010-04-27 19:07:18 -04:00
Matthias Felleisen
2613ce6c09 fixed tests for batch io 2010-04-27 19:06:31 -04:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
Matthias Felleisen
67d804af62 changed the names for batch-io functions following SK's suggstion 2010-04-27 10:26:24 -04:00
Matthias Felleisen
2a5b43a321 removed tests from universe syntax parse 2010-04-25 18:41:02 -04:00
Matthias Felleisen
77bff11a14 clean up from svn 2010-04-24 10:18:20 -04:00
Robby Findler
256e3fedd2 fixed a bug with zero-sized htdp/image images interactive with 2htdp/image primitives 2010-04-23 12:34:17 -05:00
Matthias Felleisen
ae5c682e10 fixed 10866 for _first-order_ abuse of clauses 2010-04-20 18:57:17 -04:00
Matthias Felleisen
6d1d3da1fe bug eliminated from _words_ reading 2010-04-16 17:37:59 -04:00
Matthias Felleisen
a2af09a445 one more reader, plus shortened the names of the functions 2010-04-16 10:49:21 -04:00
Matthias Felleisen
a8999166d7 one more test for batch-io 2010-04-15 20:39:26 -04:00
Matthias Felleisen
2727d5f0ba batch-io finished 2010-04-15 20:34:26 -04:00
Matthias Felleisen
2e77afe5da . 2010-04-15 18:38:09 -04:00
Matthias Felleisen
f04addd104 support several keywords per clause 2010-04-15 12:35:01 -04:00
Matthias Felleisen
ed21a85d9d added csv reading to batch-io 2010-04-14 18:58:29 -04:00
Matthias Felleisen
11f6859cb2 more api for batch-io
svn: r18808
2010-04-13 15:34:09 +00:00
Matthias Felleisen
8d1871b4c9 improved error message in response to 10854
svn: r18807
2010-04-13 14:17:29 +00:00
Matthias Felleisen
26b3cb7eb2 batch io expanded
svn: r18766
2010-04-08 22:14:36 +00:00
Matthias Felleisen
eaa7303113 the proper fix
svn: r18703
2010-04-01 02:01:05 +00:00
Matthias Felleisen
7a4cd2a706 appeasing drdr
svn: r18702
2010-04-01 00:57:36 +00:00
Matthias Felleisen
3f20bc5eb6 fixes 10836
svn: r18700
2010-03-31 21:59:07 +00:00
Matthias Felleisen
0b33e15553 committed rest of fix
svn: r18672
2010-03-30 17:41:31 +00:00
Matthias Felleisen
3c1d0b079c 10834 fixed
svn: r18668
2010-03-30 13:43:47 +00:00
Matthias Felleisen
404e0e30a1 stop clause for release
svn: r18524
2010-03-12 13:24:45 +00:00
Matthias Felleisen
b4da375084 improved release test
svn: r18519
2010-03-12 03:28:26 +00:00
Matthias Felleisen
d4adb4456d added on release
svn: r18518
2010-03-12 03:21:23 +00:00
Matthias Felleisen
9a6e94903e added release handler
svn: r18515
2010-03-12 01:36:02 +00:00
Matthias Felleisen
2655495b56 fixed bug in on-tick syntax pattern
svn: r18514
2010-03-12 01:33:57 +00:00
Matthias Felleisen
b7b9e8dde6 fixed bug in on-tick syntax pattern
svn: r18513
2010-03-12 01:33:33 +00:00
Matthias Felleisen
46d66b4542 bug report 10816
svn: r18490
2010-03-09 02:06:32 +00:00
Matthias Felleisen
982820fba2 fixed double-def of empty-scene
svn: r18177
2010-02-19 01:06:11 +00:00
Robby Findler
124dbe9b93 added empty-scene
svn: r18138
2010-02-17 23:21:57 +00:00
Robby Findler
12dc4f3421 PR 10728
svn: r18136
2010-02-17 23:07:44 +00:00
Matthias Felleisen
2c602a08c4 svn: r18006 2010-02-06 19:05:35 +00:00
Matthias Felleisen
dda81dc80d fixed bug 10733
svn: r17973
2010-02-05 01:11:05 +00:00
Matthias Felleisen
823bbd18c9 opaque iworld structure
svn: r17962
2010-02-03 22:49:12 +00:00
Matthias Felleisen
9664c79320 mouse leave/enter behavior was wrong; failure of SPC?
svn: r17925
2010-02-01 16:05:37 +00:00
Robby Findler
5f69c8ed4e now using redex check to generate random examples (and with more variety than before)
svn: r17816
2010-01-25 16:04:34 +00:00
Robby Findler
cf4294a280 changed the internal representation of normalized images so that crop structs do no have to be duplicated, improved test suites
svn: r17808
2010-01-24 20:22:58 +00:00
Robby Findler
c0cea48170 random testing found bugs (please include in release)
svn: r17792
2010-01-24 02:02:56 +00:00
Robby Findler
5f9a774880 fixed error message reporting bugs (merge to release branch)
svn: r17790
2010-01-23 23:07:34 +00:00
Matthew Flatt
178777234d notes on improving 2htdp/universe
svn: r17766
2010-01-21 18:51:08 +00:00
Robby Findler
5af38568a5 removed my broken attempt to fix the test; this is (I believe) an actual bug in the library
svn: r17703
2010-01-17 13:53:44 +00:00
Robby Findler
a9597eeb8b fixed up the docs for the base shapes to reflect the new pen arguments; added a section about pixels
svn: r17683
2010-01-17 02:50:41 +00:00
Robby Findler
3046afea04 added an code to avoid a race
svn: r17682
2010-01-17 02:29:29 +00:00
Robby Findler
7d34a9ecd5 fixed path problem
svn: r17675
2010-01-16 17:28:31 +00:00
Robby Findler
ddf0b4ec01 added finer control over pens
svn: r17670
2010-01-16 02:03:54 +00:00
Matthias Felleisen
9a50b999e2 hack for 2:image added to make sure it displays completely
svn: r17650
2010-01-14 18:05:11 +00:00
Matthias Felleisen
be76ed2add fixed small bug in draw check; eliminated the 'equal' optimization
svn: r17649
2010-01-14 17:43:44 +00:00
Robby Findler
96c717473a revised the coordinates for place-image and fixed up the docs a bit
svn: r17643
2010-01-14 01:15:31 +00:00
Robby Findler
8c9088a770 changed the overlaying functions so they default to putting the images overlay'd on their centers, not upper lefts
svn: r17632
2010-01-13 16:32:21 +00:00
Robby Findler
708d4c10d6 fixed image equality for zero width & zero height images
svn: r17593
2010-01-10 13:55:11 +00:00
Robby Findler
179f3615e2 added fast path for image equality that covers the case where the images have the same structure (roughly)
svn: r17560
2010-01-08 02:25:11 +00:00
Robby Findler
f9311ff9dc minor changes so that things run in drdr
svn: r17544
2010-01-07 20:10:59 +00:00
Robby Findler
911123bf94 added add-curve
svn: r17523
2010-01-07 01:56:46 +00:00
Robby Findler
b5e54fe2eb applied Ian's patch to the bitmap rotation code
svn: r17513
2010-01-06 21:43:34 +00:00
Robby Findler
07fcfd8eee fixed the bug uncovered by the test in the previous commit (to 2htdp/tests/test-image.ss)
svn: r17499
2010-01-06 18:43:51 +00:00
Robby Findler
01c507c1ff added a test
svn: r17498
2010-01-06 18:42:52 +00:00
Robby Findler
0b3c30f18e added place-image and fixed a bunch of bugs related to equality, rotating and other things
svn: r17491
2010-01-06 05:12:48 +00:00
Robby Findler
63c917fd8f made the image sizing functions always return exact, positive integers
svn: r17476
2010-01-04 12:36:04 +00:00
Robby Findler
f5bb840950 added cropping to 2htdp/image
svn: r17474
2010-01-04 01:39:09 +00:00
Robby Findler
ca96ddd889 switched to a bitmap-based image comparison
svn: r17466
2010-01-02 22:32:44 +00:00
Matthias Felleisen
9a11ad1d67 svn: r17465 2010-01-02 22:04:26 +00:00
Matthias Felleisen
261aa3937a performance bug, more fixes
svn: r17463
2010-01-02 21:47:08 +00:00
Robby Findler
719b72ca7e added missing require
svn: r17462
2010-01-02 20:42:46 +00:00
Matthias Felleisen
7025f6dad4 prelim fix for performance bug #10613
svn: r17446
2009-12-31 01:21:16 +00:00
Robby Findler
e821a0c461 separated 2htdp/universe from htdp/image, allowing either htdp/image or 2htdp/image to be used
svn: r17430
2009-12-29 23:59:39 +00:00
Matthias Felleisen
ed6e20220b svn: r17392 2009-12-24 01:47:26 +00:00
Robby Findler
57f9a7063e PR 10633
svn: r17159
2009-12-02 05:08:04 +00:00
Robby Findler
4c18e8212f PR 10635
svn: r17156
2009-12-02 04:42:35 +00:00
Eli Barzilay
0de55b5f3a set svn:eol-style
svn: r17123
2009-12-01 02:19:38 +00:00
Matthias Felleisen
aee5ba80d7 svn: r17115 2009-11-30 20:35:06 +00:00
Matthias Felleisen
571fec95aa stop the world and let me get off (2)
svn: r17112
2009-11-30 18:22:38 +00:00
Matthias Felleisen
bb4c88338c stop the world and let me get off
svn: r17111
2009-11-30 16:52:01 +00:00