szpakowski-lang/README.md
2024-12-06 23:02:01 +01:00

38 lines
1.1 KiB
Markdown

__Szpakowski__
An algorithmic tribute to the Polish artist [Wacław Szpakowski](https://de.wikipedia.org/wiki/Wac%C5%82aw_Szpakowski)
![Szpakowski's Artwork](szpakowski.png) ![Screenshot](screenshot.png)
at this moment still work in progress...
What is it?
* Think _Logo_, the 'turtle' language from the eighties.
* Because Szpakowski's drawings all follow the principle of the single line.
* it has the basic commands to move the turtle:
- start(x,y)
- go(distance)
- left(degrees)
- right(degrees)
* on top of that it has:
- pillars(number, length, shift, direction=DOWN): the turtle follows a pillary pattern
- number: the number of pillars (running back and forth)
- length: the distance per run
- shift: in-/decrease in length
- direction: UO|DOWN|BOTH
- moving_pillars(n, length, shift=0, direction=DOWN): the pillars move
- number: the number of pillars (running back and forth)
- length: the distance per run
- shift: shift per run
- direction: UP|DOWN
- staircase(number, size, direction = DOWN)
- number: the number of steps
- size: the step size
- direction: UP|DOWN
... more functions will follow
### Run
* npm run start