Skip to content

Commit 5ab01d8

Browse files
pgbovinemmmicedcoffee
authored andcommitted
Update README.md
1 parent f023d4d commit 5ab01d8

1 file changed

Lines changed: 18 additions & 7 deletions

File tree

‎v3/screenshot-renderer/README.md‎

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
# Render static screenshots of Online Python Tutor visualizations
22

3-
I've written a script that uses [PhantomJS](http://phantomjs.org/) to
4-
create screenshots of Online Python Tutor data structure visualizations
5-
as `.png` files.
3+
Nov 2013: I've written a [script](render-opt-screenshots.js) that uses
4+
[PhantomJS](http://phantomjs.org/) to create screenshots of Online Python Tutor
5+
data structure visualizations as `.png` files.
6+
These files can be included in a textbook or online tutorial.
67

7-
For example, first [install PhantomJS](http://phantomjs.org/download.html) and then run:
8+
To run this script, first [install PhantomJS](http://phantomjs.org/download.html) and then run:
89

910
phantomjs render-opt-screenshots.js test.py
1011

11-
This will send `test.py` to Online Python Tutor and visualize all steps
12-
as a set of `test.py.step.*.png` files.
12+
This will visualize `test.py` with Online Python Tutor (which requires online connectivity)
13+
and render the state at all steps as a set of `test.py.step.*.png` files.
1314

14-
Here are some example files:
15+
Here are some example files generated by this run:
1516

17+
Step 11 (`sample-screenshots/test.py.step.11.png`):
1618

19+
![Step 11](sample-screenshots/test.py.step.11.png)
20+
21+
Step 12 (`sample-screenshots/test.py.step.12.png`)
22+
23+
![Step 12](sample-screenshots/test.py.step.12.png)
24+
25+
Step 13 (`sample-screenshots/test.py.step.13.png`)
26+
27+
![Step 13](sample-screenshots/test.py.step.13.png)

0 commit comments

Comments
 (0)