Rosetta Examples for P5 is now available! It features sketches drawn from 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
Examples include:
- AckermannFunction
- Anagrams
- Animation
- BinaryDigits
- BullsAndCows
- ColorOfAScreenPixel
- Comments
- DrawAPixel
- FizzBuzz
- ImageNoise
- JosephusProblem
- LevenshteinDistance
- OneHundredDoors
- RenameAFile
- RepeatAString
- SieveOfErotosthenes
The project emphatically welcomes contributions. 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.
[For a previous long-running discussion of this project, see: Processing on Rosetta Code -- weekly topics?]
10 Likes
Rosetta Examples 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!
3 Likes
26 posts were merged into an existing topic: Rosetta Examples development
v0.9 of Rosetta Code Examples for P5 is out. Install / update it from the Processing PDE Contributions Manager, “Examples” tab.
For those interested in contributing an example, there are lots of ideas – including suggestions for first-time contributors – in the issues list.
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
2 Likes
v0.10 of Rosetta Code Example for P5 is out.
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.
2 Likes
v0.11 of Rosetta Code Example for P5 is out.
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
1 Like
v0.12 of Rosetta Code Example for P5 is out.
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 !
1 Like
v0.13 of Rosetta Code Example for P5 is out.
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
1 Like
v0.14 of Rosetta Code Example for P5 is out.
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!
2 Likes