• 0 Posts
  • 3 Comments
Joined 1 year ago
cake
Cake day: June 1st, 2023

help-circle

  • Mars@beehaw.orgtoProgrammer Humor@lemmy.mlsigma star
    link
    fedilink
    English
    arrow-up
    3
    ·
    8 months ago

    A tree can be seen as a formal language. Look into L-systems.

    If you generalize what a symbol is (the rgb value of a pixel) you can write a grammar that ends producing a list of pixels. You can then place it in a 2d matrix and you have an image.

    I guess a better approach would be wave function colapse, but seems to me like it could be formally described as a grammar (CS or CF, dunno, would have to look into it)