Commit Graph

47 Commits

Author SHA1 Message Date
Eli Barzilay
bffe336220 #lang racket' -> #lang racket/base' conversions in plot and in images. 2012-11-07 08:03:45 -05:00
Eli Barzilay
14d8c8b5a5 Newlines at EOFs. 2012-11-06 14:07:15 -05:00
Danny Yoo
dcf4d8b040 adding close-eval at the end of scribble files that have a toplevel evaluator 2012-11-01 15:32:53 -06:00
Sam Tobin-Hochstadt
630a77cea8 Improve type specifications for bitmap handling functions.
Fixes build issue.
2012-10-06 14:32:08 -04:00
Neil Toronto
db57b78e18 Added lock-icon
Changed most *-icon and *-logo function arguments to keyword arguments

text-icon no longer uses font size

Small doc changes
2012-06-26 15:00:05 -06:00
Neil Toronto
7fb38aff44 Fixed type errors uncovered by correction to type of exact->inexact (i.e. change to real->double-flonum) 2012-06-12 13:26:06 -06:00
Neil Toronto
e644e6afb1 Documented new additions to racket/math 2012-06-06 11:31:49 -06:00
Neil Toronto
c089b2fa50 Use `collection-file-path' to load example image 2012-06-05 11:15:25 -06:00
Neil Toronto
18fa552723 Finalized and documented flomap transforms and effects 2012-06-04 15:32:17 -06:00
Neil Toronto
331b3b8351 Fixed some transforms, stubbed out docs and examples for the same 2012-05-30 17:31:57 -06:00
Neil Toronto
91579f2a6e Now make-flomap* and effects functions accept (U (Vectorof Real) FlVector) for color instead of just FlVector
New vector-of-component functions: unsafe-flomap-ref*, flomap-ref*, flomap-bilinear-ref*, build-flomap*, inline-build-flomap*;
REPL interaction with -ref* is a bit weird - still need to make flvectors print nicely

Bilinear ref and scaling fix on top and left borders (bad/missing special cases);
Clarified flomap-bilinear-ref docs on extent of interpolated nonzero rectangle

Various doc fixes
2012-05-30 15:05:00 -06:00
Neil Toronto
c05c45e0e9 Fixed whirl morph test 2012-05-29 18:08:48 -06:00
Neil Toronto
c7bea1dfcd images/flomap: public interface to floating-point bitmaps used by ray tracer 2012-05-29 17:51:19 -06:00
Vincent St-Amour
263016f6f3 Fix types in the images collection to work with TR's handling of NaN. 2012-05-25 17:15:22 -04:00
Neil Toronto
eeb3da0c23 Changed macros into functions + begin-encourage-inline; drops a few seconds from `images' compile, no measured performance penalty 2012-05-25 14:16:19 +09:00
Neil Toronto
0c6719319f Fixed ellipses in scaled icons after fix to draw-ellipse in commit 1432912357 (mflatt); had been relying on earlier buggy behavior 2012-05-15 11:19:05 -06:00
Matthew Flatt
9a41129c69 racket/flonum: add `flexpt' 2012-05-07 20:41:14 -06:00
Eli Barzilay
43ef402274 Don't compile test files.
(Didn't touch the tiny "test-docs-complete" tests.)
2012-03-13 10:29:13 -04:00
Neil Toronto
54c8b51c32 Refactoring 2012-03-09 11:30:34 -07:00
Vincent St-Amour
593e4a4f1d Provide require/typed/provide and require-typed-struct/provide from TR. 2012-02-10 11:30:20 -05:00
Neil Toronto
dc677998f0 Added JPEG compression to compiled-bitmap' and compiled-bitmap-list'
Added "whirl and pinch" transform
2012-02-01 22:17:25 -07:00
Neil Toronto
950f034936 Pushing unfinished but stable flomap transforms so Matthew can debug a segfault 2012-02-01 09:54:25 -07:00
Neil Toronto
2465b87d84 Coolified clock-icon, added stopwatch-icon
Updated Performance Report toolbar icon

Updated FrTime loading icon
2012-01-20 13:16:42 -07:00
Neil Toronto
07500b27f6 Fixed error in flomap gradient calculation (borders were always getting 0.0, causing erroneous lighting)
Inset rendered deep-flomaps by 1px to harden against future border issues

Adjusted scatter-simulating blur (finally rid of edge sparklies!)
2012-01-20 12:39:23 -07:00
Neil Toronto
f1add6929b Added portable hash-quote-icon, updated and recolored macro stepper toolbar icon
Closes PR 12422

Please merge into release
2012-01-20 12:29:52 -07:00
Neil Toronto
1b0db97919 Too many changes to cherry-pick for release
This reverts commit b8e3e8a04b.
2012-01-20 11:52:17 -07:00
Neil Toronto
b8e3e8a04b Fixed error in flomap gradient calculation (borders were always getting 0.0, causing erroneous lighting)
Inset rendered deep-flomaps by 1px to harden against future border issues

Adjusted scatter-simulating blur (finally rid of edge sparklies!)

Added portable hash-quote-icon, stopwatch-icon

Vertical toolbar macro stepper icon now discernable

Updated Performance Report toolbar icon

Updated FrTime loading icon

Closes PR 12422

Please merge into release
2012-01-19 21:33:22 -07:00
Neil Toronto
695583e90b Added clock icon
Fixed faulty bilinear interpolation in shadow intersection, removed blurring hack

Fixed caching bug (for some reason, generate-temporaries didn't create a unique symbol - note, not *identifier*; used gensym instead)

Please merge into release
2012-01-16 22:30:52 -07:00
Neil Toronto
aa0851bc45 Exposed simple rendering API (can at least render simple icons given a pict now)
Please merge into release
2012-01-16 16:39:18 -07:00
Neil Toronto
f45843d58e Added docs for images/compile-time
Added `is-a?' and `list?' tests to `compiled-bitmap' and `compiled-bitmap-list'

Please merge into release
2012-01-16 16:39:17 -07:00
Neil Toronto
ea68677d2f Icon fixes:
Split images/icons/misc into images/icons/symbol and images/icons/misc

Updated tests

Fixed Gtk assertion failure in Macro Stepper (came from "about" dialog being created before the stepper window was shown; fixed by creating it on demand)

Changed Stepper similarly (though there was no assertion failure)

Put a quote in the Macro Stepper logo

Portable recycle-icon

Removed recycle unicode from the docs (was causing PDF build to fail)

Internal API fixes

Please merge into release
2012-01-16 12:45:48 -07:00
Neil Toronto
f66aab8057 Removed the animated GIF of the running stickman :(
Please merge into release
2012-01-15 22:19:55 -07:00
Neil Toronto
4a09c04581 Lightened icon outlines
Added lambda icon, foot icon, search forward/back icons

Doc fixes

Stepper: icons on buttons, logo and about dialog

Macro stepper: icons on buttons, logo and about dialog

Please merge into release
2012-01-15 22:19:55 -07:00
Neil Toronto
b78ee4258c Finished images/icons contracts and docs
Please merge into release
2012-01-14 14:20:28 -07:00
Neil Toronto
599dda4745 Removed timing examples (not reliable)
Please merge into release
2012-01-13 22:00:06 -09:00
Neil Toronto
15f48a7b03 Documented logos
Please merge into release
2012-01-13 23:51:31 -07:00
Neil Toronto
0c5ea11056 Contracts for almost all icon-producing functions
More documentation (Now contains an animated GIF! We have achieved Web 1.0!)

Fixed stop sign double-rendering bug

Compiled logos size 256 (no rendering time for sizes < 256; intended size almost instantaneous)

Please merge into release
2012-01-13 22:49:27 -07:00
Neil Toronto
4d1cedc913 Removed accidental dependence of images/icons/stickman on racket/gui
Began scribble docs

Added `compiled-bitmap' and `compiled-bitmap-list', which embed bitmaps
computed at expansion time into compiled files (safe 3D values)

Please merge into release
2012-01-12 21:48:41 -07:00
Neil Toronto
5dcfd76927 Text icon fix - works better when trimmed
Recycle icon (text icon of string "\u267b")

Removed debug output from plt-logo

Slightly faster bitmap <-> flomap conversion (uses bitmap%'s premultiply-alpha)

Please merge into release
2012-01-12 11:22:01 -07:00
Neil Toronto
2313b528c4 Added standing and running stickman icons
Optimize rendering by looping only over the smallest rectangle with nonzero alpha

Please merge into release
2012-01-12 11:22:01 -07:00
Matthew Flatt
7850a26dfe fix bytecode optimizer bugs
Certain unsafe operations were allowed to propagate across a
`lambda' boundary (where space safety is known not to be an issue),
which could lead to duplicate uses of a "once used" variable if
the relevant `lambda' is inlined.

Furthermore, `lambda' boundary crossing wasn't detected in the case
that the operation to propagate was propagated through an intermediate
variable without a `lambda' crossing.

Merge to 5.2.1
2012-01-11 05:30:11 -07:00
Neil Toronto
5736695bae Better debugger icon bomb 2012-01-10 15:21:49 -07:00
Neil Toronto
daf3ed55ba Rewrote flomaps and rendering in Typed Racket for speed and safety 2012-01-10 13:30:32 -07:00
Neil Toronto
be4bfdff4c Contract fix 2012-01-10 13:30:32 -07:00
Neil Toronto
6ec78137e3 Caching with weak boxes, cleanup, planet download icon 2012-01-10 13:30:32 -07:00
Neil Toronto
89a5afa96d Purged last SVG file 2012-01-07 16:32:56 -07:00
Neil Toronto
1a00d2d51f Last icon rewrite!
This removes all the SVG sources, parsing, and marked-layer colorizing, the PNG binaries in the distribution, and the dependence of DrRacket on `slideshow/pict'.

Icons are now produced by drawing on a bitmap-dc%, inferring or building a z map, choosing a material, and sending these to a two-pass ray tracer. This is for the most part hidden behind an API consisting of functions from colors and optional sizes and materials to `bitmap%'s.

Contracts and documentation forthcoming.
2012-01-07 16:18:11 -07:00