From b4f498131a73cbdce3b570644dee3db16c161543 Mon Sep 17 00:00:00 2001 From: Danny Yoo Date: Sat, 23 Jul 2011 00:14:52 -0400 Subject: [PATCH] working on the slide material --- image/private/js-impl.js | 9 ++++++++- racketcon/plt-logo.png | Bin 0 -> 6717 bytes racketcon/talk.rkt | 14 +++++++++++--- 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 racketcon/plt-logo.png diff --git a/image/private/js-impl.js b/image/private/js-impl.js index a714a88..ff82e9a 100644 --- a/image/private/js-impl.js +++ b/image/private/js-impl.js @@ -79,6 +79,12 @@ var checkReal = plt.baselib.check.checkReal; var checkBoolean = plt.baselib.check.checkBoolean; var checkNatural = plt.baselib.check.checkNatural; + +var checkPositiveInteger = plt.baselib.check.makeCheckArgumentType( + function(x) { return plt.baselib.numbers.isInteger(x) && + plt.baselib.numbers.greaterThan(x, 0);}, + "positive integer"); + var checkNonNegativeReal = plt.baselib.check.checkNonNegativeReal; @@ -236,7 +242,8 @@ EXPORTS['text'] = 3, function(MACHINE) { var aString = checkString(MACHINE,'text', 0); - var aSize = checkByte(MACHINE, 'text', 1); + // Unlike 2htdp, we'll allow this to be a positive integer + var aSize = checkPositiveInteger(MACHINE, 'text', 1); var aColor = checkColor(MACHINE, 'text', 2); return makeTextImage(aString.toString(), jsnums.toFixnum(aSize), diff --git a/racketcon/plt-logo.png b/racketcon/plt-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..4e53f004449d1ff353cc84d4d795396ff4833acc GIT binary patch literal 6717 zcmV-D8p7p?P)NL+ zaWMjy5-Y^UBIc57ld|Iwleo$_RAiS!g>vd%<6GB`bFY1c!NvwvFu1sYjD!H2H?|ZB zDS(7PS_y=Z_I+M6-JL(?%sD-Cdgh#!gsW0@e^p&Gr>CFa`OUX~{hRJNf~W|RMYp&f zrU}cjrPn0Nck|HG2Zd?i_JQo_?3A5SN;jX^erKmBc6Bj2K3+Upsf->y@4WHhC!bs= zg=i`>tg}^n<83wb#`9~UeX{k_TAo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