Log In  

Cart #sofia_ornaments-1 | 2020-02-24 | Code ▽ | Embed ▽ | No License
4

Generate pretty Bulgarian-looking pictures by specifying a sequence of L-system-like rules.

  • Press Z to reset the shape
  • Press UP to add 1 to the rule string
  • Press DOWN to add 2 to the rule string
  • Press RIGHT to add 0 to the rule string
  • Press X to add a random rule to the string
Rule 1: -- ==> /\ (split segment to two, move midpoint outwards)

Rule 2: -- ==> \/ (split segment to two, move midpoint inwards)

Rule 0: -- ==> -- (split segment to two, leave midpoint on the original segment)
P#73378 2020-02-23 17:25 ( Edited 2020-02-24 23:04)

Trivial

Simple

All ones, all twos

More examples

P#73380 2020-02-23 17:35 ( Edited 2020-02-23 19:33)

Nifty! This is a really cute generator. :D

p.s. noticed a bug - the thing that makes it stop after a fixed number of cycles doesn't stop you from pressing [x] to keep going and then crash the cart...

P#73401 2020-02-24 03:06
1

Thank you, packbat, and also for the bug report. Fixed! :)

P#73442 2020-02-24 23:05

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-19 03:45:50 | 0.013s | Q:15