|
149 | 149 | <p class="Normal">GlowScript uses the ACE text editor. Here is a list of <a href="https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts" target="_blank"><strong>keyboard shortcuts</strong></a> for find, replace, etc. While editing, press <strong>Ctrl-1</strong> to run your program in the same window. Press <strong>Ctrl-2</strong> to run your program in a separate window, which can be convenient for comparing the program with its behavior. If you change your program, press <strong>Ctrl-2</strong> again in the editor display to re-run the program with the new changes. Because ACE doesn't work on mobile devices, a simpler editor is used there.</p>
|
150 | 150 | <p class="Normal"><strong>A simple program:</strong> In the editor, after the GlowScript header, enter the statement "sphere()" and choose "Run this program". You should see a 3D sphere. Read the Help discussions on <a href="cylinder.html">cylinder</a> and <a href="box.html">box</a> objects to learn how to customize 3D objects (position, color, size, etc.).</p>
|
151 | 151 | <p class="Normal"><strong>Rotate and zoom:</strong> You can rotate and zoom the camera using the mouse; for instructions, see the Example program <a href="https://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/AtomicSolid" target="_blank"><strong>AtomicSolid</strong></a>.</p>
|
152 |
| - <p class="Normal"><strong>Errors and debugging:</strong> If you are using JavaScript, watch for little yellow triangles or red squares to the left of a program statement and move the mouse over the icon. You'll see a message describing an error with that line. (This capability is not yet active for VPython or RapydScript.) When you run the program you may see other error messages. <strong><span class="attribute1">Only with the Chrome browser is it usually possible for GlowScript to display the line number of the error, so when developing programs it is strongly advised to use Chrome.</span></strong> Some program errors are reported only to the "console". To enable the console, in Chrome, press shift-ctrl-j on Windows or Ubuntu, or option-cmd-j on Mac. In Firefox, on Windows choose Firefox > Web Developer > Web Console, and on Ubuntu choose Tools > Web Developer > Web Console. The output will be found at the end of the console output </p> |
| 152 | + <p class="Normal"><strong>Errors and debugging:</strong> If you are using JavaScript, watch for little yellow triangles or red squares to the left of a program statement and move the mouse over the icon. You'll see a message describing an error with that line. (This capability is not yet active for VPython or RapydScript.) When you run the program you may see other error messages. <strong><span class="attribute1">Only with the Chrome or Edge browser is it usually possible for GlowScript to display the line number of the error, so when developing programs it is strongly advised to use Chrome or Edge.</span></strong> Some program errors are reported only to the "console". To enable the console, in Chrome or Edge, press shift-ctrl-j on Windows or Ubuntu, or option-cmd-j on Mac. In Firefox, on Windows choose Firefox > Web Developer > Web Console, and on Ubuntu choose Tools > Web Developer > Web Console. The output will be found at the end of the console output </p> |
153 | 153 | <p class="Normal">When developing a program it can be very useful to comment out a block of code temporarily. Here is how to do this in the three languages:</p>
|
154 | 154 | <p class="program"># VPython or RapydScript (can also use '''):<br />
|
155 | 155 | """<br />
|
|
172 | 172 | <div> </div>
|
173 | 173 | </div>
|
174 | 174 | <p class="Normal">GlowScript uses the WebGL 3D graphics library that is included in current versions of major web browsers. <em><strong>You must have a modern graphics card with Graphics Processing Units (GPUs).</strong></em> Here are browser details:</p>
|
175 |
| - <p class="Normal"><strong>Chrome, Firefox, Safari</strong>,and <strong>Edge</strong> all support WebGL and GlowScript.</p> |
| 175 | + <p class="Normal"><strong>Chrome, Edge, Firefox, Safari</strong>,and <strong>Edge</strong> all support WebGL and GlowScript.</p> |
176 | 176 | <p class="Normal"><strong>Tablets and smart phones</strong>: Most tablets and smart phones support WebGL and GlowScript, both Android and iOS.</p>
|
177 | 177 | <p class="Normal"><strong>Testing:</strong> If things don't work, it may be useful to visit <a href="https://get.webgl.org" target="_blank">get.webgl.org</a> which checks whether WebGL is working properly on your computer. Also, here is a <a href="http://www.khronos.org/webgl/wiki/Demo_Repository" target="_blank">repository</a> of WebGL demo programs, where it may be useful to see whether these programs will run on your computer.</p>
|
178 | 178 | <p class="Normal"><strong><font color="#0000A0">RapydScript, a Python look-alike</font></strong></p>
|
|
0 commit comments