# Rosetta Examples for P5

**URL:** <https://discourse.processing.org/t/rosetta-examples-for-p5/16442>\
**Category:** Gallery\
**Created:** [December 16, 2019, 6:08am UTC](https://discourse.processing.org/t/rosetta-examples-for-p5/16442 "2019-12-16T06:08:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [December 16, 2019, 6:08am UTC](https://discourse.processing.org/t/rosetta-examples-for-p5/16442/1 "2019-12-16T06:08:47Z")

</div>

**[Rosetta Examples for P5](https://github.com/jeremydouglass/rosetta_examples_p5)** is now available! It features sketches drawn from [RosettaCode.org](http://RosettaCode.org) demonstrating the completion of a variety of common computing tasks in Processing (Java Mode). You can install it in Processing PDE:

> PDE \> Contributions Manager \> Examples \> Rosetta Examples

> **[GitHub - jeremydouglass/rosetta\_examples\_p5: Example set from Rosetta Code...](https://github.com/jeremydouglass/rosetta_examples_p5/)**
>
> Example set from Rosetta Code for P5 (Processing). Contribute to jeremydouglass/rosetta\_examples\_p5 development by creating an account on GitHub.

Examples include:

- AckermannFunction
- Anagrams
- Animation
- BinaryDigits
- BullsAndCows
- ColorOfAScreenPixel
- Comments
- DrawAPixel
- FizzBuzz
- ImageNoise
- JosephusProblem
- LevenshteinDistance
- OneHundredDoors
- RenameAFile
- RepeatAString
- SieveOfErotosthenes

The project emphatically welcomes [contributions](https://github.com/jeremydouglass/rosetta_examples_p5/blob/master/CONTRIBUTING.md). If you would like to adapt an existing sketch from the wiki into an example, check out some great starting points in the current [list of open issues](https://github.com/jeremydouglass/rosetta_examples_p5/issues).

* * *

[For a previous long-running discussion of this project, see: [Processing on Rosetta Code -- weekly topics?](https://discourse.processing.org/t/processing-on-rosetta-code-weekly-topics/5980)]

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [December 18, 2019, 12:38am UTC](https://discourse.processing.org/t/rosetta-examples-for-p5/16442/2 "2019-12-18T00:38:53Z")

</div>

[Rosetta Examples](https://github.com/jeremydouglass/rosetta_examples_p5/releases/latest/) has a new release out, now adding:

- ArchimedeanSpiral
  - ArchimedeanSpiral\_Lines
  - ArchimedeanSpiral\_LinesRotated
  - ArchimedeanSpiral\_Points
  - ArchimedeanSpiral\_PointsRotatedMatrix
  - ArchimedeanSpiral\_PointsRotatedPVector

- Bitmap
- MandelbrotSet
- NinetyNineBottles

You can install it through:

> PDE \> Contributions Manager \> Examples \> Rosetta Examples

Thanks in particular to @noel for contributing Bitmap and MandelbrotSet to the Rosetta Code wiki!

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [March 23, 2020, 8:10pm UTC](https://discourse.processing.org/t/rosetta-examples-for-p5/16442/3 "2020-03-23T20:10:24Z")

</div>

26 posts were merged into an existing topic: [Rosetta Examples development](https://discourse.processing.org/t/rosetta-examples-development/18945/2)

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [February 22, 2020, 10:47pm UTC](https://discourse.processing.org/t/rosetta-examples-for-p5/16442/7 "2020-02-22T22:47:37Z")

</div>

v0.9 of Rosetta Code Examples for P5 is out. Install / update it from the Processing PDE Contributions Manager, “Examples” tab.

- [https://github.com/jeremydouglass/rosetta\_examples\_p5/releases](https://github.com/jeremydouglass/rosetta_examples_p5/releases)

For those interested in contributing an example, there are lots of ideas – including suggestions for first-time contributors – in the issues list.

- [https://github.com/jeremydouglass/rosetta\_examples\_p5/issues](https://github.com/jeremydouglass/rosetta_examples_p5/issues)

Some suggestions for next additions include:

- A+B
- Array length
- Babbage problem
- Barnsley fern
- Brownian tree
- Call an object method
- Chaos game
- Classes
- Even or odd
- Factorial
- Fibonacci sequence
- Function definition
- HelloWorld
- Julia set
- Langton’s ant
- Loops
- Palindrome detection
- Pythagoras tree
- Shell one-liner

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [March 4, 2020, 7:17pm UTC](https://discourse.processing.org/t/rosetta-examples-for-p5/16442/19 "2020-03-04T19:17:32Z")

</div>

v0.10 of Rosetta Code Example for P5 is out.

- [https://github.com/jeremydouglass/rosetta\_examples\_p5/releases](https://github.com/jeremydouglass/rosetta_examples_p5/releases)

To update immediately, uninstall / reinstall from the Processing PDE Contributions Manager, “Examples” tab.

Adds:

- BezierCurvesCubic
- DragonCurve
- EvenOrOdd
- Factorial
- KochCurve
- PalindromeDetection
- PythagorasTree
- SeiveOfEratosthenes\_Viz

Special thanks to Noel and Dawit Ghebrehiwet.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [March 18, 2020, 6:08pm UTC](https://discourse.processing.org/t/rosetta-examples-for-p5/16442/21 "2020-03-18T18:08:05Z")

</div>

v0.11 of Rosetta Code Example for P5 is out.

- [https://github.com/jeremydouglass/rosetta\_examples\_p5/releases](https://github.com/jeremydouglass/rosetta_examples_p5/releases)

To update immediately, uninstall / reinstall from the Processing PDE Contributions Manager, “Examples” tab.

**Adds Python mode examples! (with special thanks to Alexandre Villares @villares).**  
Java mode and Python mode examples are now organized in subfolders.

New in this release:

Java:

- EmptyProgram
- HelloWorld
- ColorWheel

Python:

- Animation
- ArchimedeanSpiral\_Points
- ColorWheel
- DragonCurve
- ImageNoise
- KochCurve
- MandelbrotSet
- PythagorasTree

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [March 23, 2020, 7:58pm UTC](https://discourse.processing.org/t/rosetta-examples-for-p5/16442/32 "2020-03-23T19:58:39Z")

</div>

v0.12 of Rosetta Code Example for P5 is out.

- [https://github.com/jeremydouglass/rosetta\_examples\_p5/releases](https://github.com/jeremydouglass/rosetta_examples_p5/releases)

To update immediately, uninstall / reinstall from the Processing PDE Contributions Manager, “Examples” tab.

Added:

- BarnsleyFern.pde
- BrownianTree.pde
- BrownianTree.pyde
- FractalTree\_Calculation.pde
- FractalTree\_Calculation.pyde
- FractalTree\_Rotation.pde
- FractalTree\_Rotation.pyde
- DrawAClock.pyde

Updated:

- DrawAClock.pde
- DrawAPixel.pde
- MandelbrotSet.pyde

Also includes various changes to better support Python mode examples: .gitignore, .gitattributes, issue templates, and CONTRIBUTING.

Special thanks to Alexandre Villares @villares !

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [April 4, 2020, 8:40pm UTC](https://discourse.processing.org/t/rosetta-examples-for-p5/16442/33 "2020-04-04T20:40:20Z")

</div>

v0.13 of Rosetta Code Example for P5 is out.

- [https://github.com/jeremydouglass/rosetta\_examples\_p5/releases](https://github.com/jeremydouglass/rosetta_examples_p5/releases)

To update immediately, uninstall / reinstall from the Processing PDE Contributions Manager, “Examples” tab.

Greatly expanded the Python mode example set, including many previously added for Java mode. Special thanks to Alexandre Villares @villares !

Java:

- Game of Life
- Hilbert Curve
- Julia Set
- Mouse Position

Python:

- Ackerman Function
- Bezier Curves Cubic Interactive
- Comments
- Game of Life
- Hilbert Curve
- Julia Set
- Levenshtein Distance
- Mouse Position
- Ninety Nine Bottles (Viz)
- Palindrome Detection
- Repeat A String
- Rename A File
- Sieve Of Eratosthenes (Viz)
- Vector

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [April 18, 2020, 1:11am UTC](https://discourse.processing.org/t/rosetta-examples-for-p5/16442/34 "2020-04-18T01:11:50Z")

</div>

v0.14 of Rosetta Code Example for P5 is out.

- [https://github.com/jeremydouglass/rosetta\_examples\_p5/releases](https://github.com/jeremydouglass/rosetta_examples_p5/releases)

**Adds Processing.R!**  
R mode examples are organized in the examples/R subfolder.

R:

- AckermannFunction.rpde
- NinetyNineBottles.rpde
- OneHundredDoors.rpde

Further Python mode porting of Java mode examples, with many thanks to @villares.

Python:

- BarnsleyFern.pyde
- BinaryDigits.pyde
- Bitmap.pyde
- DrawARotatingCube.pyde
- Factorial.pyde
- JosephusProblem.pyde

For the future: there is a Ruby branch (slowly) in the works, inspired by contributions by @noel and @monkstone. Onward!
