|
2 | 2 | // Daniel Shiffman |
3 | 3 | // http://www.learningprocessing.com |
4 | 4 |
|
5 | | -// lass="exercise"data-type="sidebar"id="use_the_following_xml_document_to_initia"> |
6 | | -// Exercise 18-14: Use the following XML document to initialize an array of |
7 | | -// objects. Design the objects to use all of the values in each XML element. |
8 | | -// (Feel free to rewrite the XML document to include more or less data.) |
9 | | -// If you do not want to retype the XML, it is available at this book's web |
| 5 | +// Exercise 18-14: Use the following XML document to initialize an array of |
| 6 | +// objects. Design the objects to use all of the values in each XML element. |
| 7 | +// (Feel free to rewrite the XML document to include more or less data.) |
| 8 | +// If you do not want to retype the XML, it is available at this book's web |
10 | 9 | // site. |
11 | 10 |
|
12 | 11 | /* |
13 | | -<?xml version ="1.0"?> |
| 12 | +<?xml version="1.0"?> |
14 | 13 | <particles> |
15 | 14 | <particle> |
16 | | - <location x ="99"y ="192"/> |
17 | | - <speed x ="– 0.88238335"y ="2.2704291"/> |
18 | | - <size w ="38"h ="10"/> |
| 15 | + <location x="99" y="192"/> |
| 16 | + <speed x="0.88238335" y="2.2704291"/> |
| 17 | + <size w="38" h="10"/> |
19 | 18 | </particle> |
20 | 19 | <particle> |
21 | | - <location x ="97"y ="14"/> |
22 | | - <speed x ="2.8775783"y ="2.9483867"/> |
23 | | - <size w ="81"h ="43"/> |
| 20 | + <location x="97" y="14"/> |
| 21 | + <speed x="2.8775783" y="2.9483867"/> |
| 22 | + <size w="81" h="43"/> |
24 | 23 | </particle> |
25 | 24 | <particle> |
26 | | - <location x ="159"y ="193"/> |
27 | | - <speed x ="-1.2341062"y ="0.44016743"/> |
28 | | - <size w ="19"h ="95"/> |
| 25 | + <location x="159" y="193"/> |
| 26 | + <speed x="-1.2341062" y="0.44016743"/> |
| 27 | + <size w="19" h="95"/> |
29 | 28 | </particle> |
30 | 29 | <particle> |
31 | | - <location x ="102"y ="53"/> |
32 | | - <speed x ="0.8000488"y ="-2.2791147"/> |
33 | | - <size w ="25"h ="95"/> |
| 30 | + <location x="102" y="53"/> |
| 31 | + <speed x="0.8000488" y="-2.2791147"/> |
| 32 | + <size w="25" h="95"/> |
34 | 33 | </particle> |
35 | 34 | <particle> |
36 | | - <location x ="152"y ="181"/> |
37 | | - <speed x ="1.9928784"y ="-2.9540048"/> |
38 | | - <size w ="74"h ="19"/> |
| 35 | + <location x="152" y="181"/> |
| 36 | + <speed x="1.9928784" y="-2.9540048"/> |
| 37 | + <size w="74" h="19"/> |
39 | 38 | </particle> |
40 | | -</particles> |
| 39 | +</particles> |
41 | 40 | */ |
0 commit comments