Icon Analyst 53 -- Supplementary Material

Last updated May 16, 1999

Weaving Drafts

Program Material

Links

Graphics Corner -- Changing Image Colors

Figure 1. The Application Interface

Figure 2. An Example Image

Figure 3. Color Dialog

Figure 4. Modified Color Dialog

Figure 5. The Modified Image

The Program

Answers to Quiz on Expression Evaluation

1. False; a repeat loop can be terminated by return, fail, suspend, exit(), stop(), or a run-time error.

2. False.

3. True; by the case expression failing, the evaluation of a selected case clause failing, or if no case clause is selected.

4. True: If the selected case clause is a generator, the case clause generates its results.

5. True: break can have an argument expression, as in

     break 1 to 10

which geneates 1, 2, ..., 10 if the break expression is evaluated.

6. Assigns 1 to i; there is no failure to cause the to expression to be resumed.

7. True.

8. True is a sense: If x is a file stream that never termiantes.

9. False. If x is empty, ?x fails and |?x produces no result.

10. The first expression fails, since every fails after generating and write() inherits the failure.

The second expression writes

7
7
7
7
7

11.

a:

1
2
3
4
5
5
4
3
2
1

b.

6
5
4
3
2
7
6
5
4
3
8
7
6
5
4
9
8
7
6
5
10
9
8
7
6

c.

1
2
1
3
2
1
4
3
2
11

12.

a.

1
2
3
4
5
6
7
8
9

b.

1
2
3
4
5
6
7
8
9

c.

1
2
3
4
5
6
7
8
9
1
2
3

d.

1
1
2
1
2
3
1
2
3
4
1
2
3
4
5

e.

1
2
3
4
5
6
7

f.

1
1
2
1
2
3
1
2
3
1
2
1

13. The first expression fails. The other three are "black holes" that never terminate or produce a result.



The Air Horse

Icon home page

Color Wheel Animation

Graphics Corner -- Changing Image Colors
Graphics Corner -- Changing Image Colors
Graphics Corner -- Changing Image Colors