<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Yes, it should be in the image. Look for 'gasTank'. You can do this from the 'Shell' in the Desktop UI by typing 'gasTank' and then pressing 'Get It'. This gives you an outliner for it. Middle click that and choose 'Show Morph'.<br></div>
<div> </div>
<div>You'll see a rectangle outline on the desktop. From the outliner, press the 'E' in the top right of the outliner (it's the "^ E x' part) to get a shell for that object. In that type 'start' and press 'Do It' to start running the gas tank. you won't seen anything until you add an atom.<br></div>
<div> </div>
<div>To add an atom do 'addAnAtom' in the evaluator and press 'Do It'. Do this multiple times. You can resize the morph by right clicking on it and choose 'resize'.<br></div>
<div> </div>
<div>An exercise for you would be to create some buttons that do these method calls (start, stop, addAnAtom) when clicked. You can them embed those buttons in a row morph. Then embed that row morph and the gas tank in a column morph to get a single "Gas Tank" widget with controls.<br></div>
<div> </div>
<div> </div>
<div> </div>
<div>On Tue, Mar 4, 2014, at 11:02 PM, Stephen De Gabrielle wrote:<br></div>
<blockquote style="margin: 0px 0px 0px 4px;" type="cite"><div>
<span style="display:none"> </span>
<br></div>
<div style="position: relative; font-family: Arial,helvetica,clean,sans-serif; font-size: 13px;"><div style="z-index: 1; line-height: 1.22em;"><div style="font-family: Georgia; line-height: 1.22em;"><p style="margin: 0px 0px 1em; line-height: 1.22em;">Hi,<br></p><div style="line-height: 1.22em;"> </div>
<div style="line-height: 1.22em;">Is the code to the ideal gas animation example available?<br></div>
<div style="line-height: 1.22em;"> </div>
<div style="line-height: 1.22em;"><a style="line-height: 1.22em;" href="http://handbook.selflanguage.org/4.5/morphic.html#animation">http://handbook.selflanguage.org/4.5/morphic.html#animation</a>
<br></div>
<div style="line-height: 1.22em;"> </div>
<div style="line-height: 1.22em;">Kind regards,<br></div>
<div style="line-height: 1.22em;"> </div>
<div style="line-height: 1.22em;">Stephen<br></div>
<div style="line-height: 1.22em;"> </div>
<div style="line-height: 1.22em;"> </div>
<div style="line-height: 1.22em;"> </div>
<div> </div>
<div> </div>
<div>-- <br></div>
<div> </div>
<div>--<br></div>
<div>Stephen De Gabrielle<br></div>
<div><a style="line-height: 1.22em;" href="mailto:stephen.degabrielle@acm.org" target="_blank">stephen.degabrielle@acm.org</a><br></div>
<div>
Telephone +44 (0)20 85670911<br></div>
<div>Mobile +44 (0)79 85189045<br></div>
<div><a style="line-height: 1.22em;" href="http://www.degabrielle.name/stephen" target="_blank">http://www.degabrielle.name/stephen</a><br></div>
<div> </div>
<div> </div>
<p style="margin: 0px 0px 1em; line-height: 1.22em;"><br></p></div>
<div style="color: rgb(255, 255, 255); height: 0px; line-height: 1.22em;"><br></div>
</blockquote></body>
</html>