Clean-up README:
add more syntax highlighting
remove several empty lines
decrease indent level
@@ -33,15 +33,14 @@ def setup():
colorMode(HSB)
noStroke()
-
def draw():
fill(0x11000000)
rect(0, 0, width, height)
fill(frameCount % 255, 255, 255)
ellipse(mouseX, mouseY, 20, 20)
```
-If you are just getting started, it is a good idea to go through the [tutorials on our website](http://py.processing.org/tutorials/), and alternatively some [examples](mode/examples).
+If you are just getting started, it is a good idea to go through the [tutorials on our website](http://py.processing.org/tutorials/), and alternatively some [examples](mode/examples).
## Using Processing Libraries ##
@@ -54,30 +53,34 @@ If you find that some Processing library doesn't work as expected with processin
## FAQ ##
- * __How do I report bugs or request new features?__
+### How do I report bugs or request new features? ###
Please report any issue in the [bug tracker](http://github.com/jdf/processing.py/issues).
- * __How can I create a launcher for my sketch?__
+### How can I create a launcher for my sketch? ###
Add these lines near the top of your script:
+```python
import launcher
launcher.create()
+```
- * __How can I use Ani, or any other library that modifies fields?__
+### How can I use Ani, or any other library that modifies fields? ###
Some libraries such as [Ani](http://www.looksgood.de/libraries/Ani/) require you to specify a variable name for animation. Unfortunately they cannot access Python variables directly (and Java's built in classes are immutable).
To solve this problem we instead create a mutable `PrimitiveFloat` object. This object has a field `.value`, which you can use for these purposes.
+```python
import jycessing.primitives.PrimitiveFloat as Float
x = Float(100.0)
Ani.to(x, 200, "value", 50); # "value" is the name of the Float's internal field
+```
In case you need other primitive values, please [let us know](http://github.com/jdf/processing.py/issues)!
- * __Why was this project created?__
+### Why was this project created? ###
I ([Jonathan](http://MrFeinberg.com/)) recently gave a talk about Processing to a group of rather bright 8th-graders,
as part of a computer-programming summer camp they were attending at my office.
@@ -112,7 +115,6 @@ If you find that some Processing library doesn't work as expected with processin
per second of 3D graphics on my linux box. So, kudos to the Processing
project, and kudos to Jython!
-
## Credits ##
Written by [Jonathan Feinberg](http://mrfeinberg.com) &lt;[jdf@pobox.com](mailto:jdf@pobox.com)&gt;
@@ -132,8 +134,6 @@ YourKit, LLC is the creator of <a href="https://www.yourkit.com/java/profiler/">
and <a href="https://www.yourkit.com/.net/profiler/">YourKit .NET Profiler</a>,
innovative and intelligent tools for profiling Java and .NET applications.
+## License ##
-
-
-## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjdf%2Fprocessing.py.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjdf%2Fprocessing.py?ref=badge_large)
