cross-posted from: https://lemmy.world/post/20670854

https://gitlab.com/christosangel/c-squares

c-squares written in the C language will render random coloured rectangulars in the terminal, while the font, speed, density, color, ratio and number of the shapes drawn are fully costumizable.

Every time a rectangular is complete, a new one starts to take shape.

1.png

Click on image to play video


https://gitlab.com/christosangel/c-squares/-/raw/main/screenshots/2.png

https://gitlab.com/christosangel/c-squares/-/raw/main/screenshots/3.png


Feel free to explore the endless variations.

  • 𝕸𝖔𝖘𝖘
    link
    fedilink
    English
    122 months ago

    Most of these are not squares. They’re rectangles.

    Also, c-squared would have been an amazing name based on a math pun. Lol

    Also, this looks awesome and I love it.

    • @[email protected]
      link
      fedilink
      42 months ago

      I do not get your point?

      A script is more about the program rather than the language. You can write a script in assembly or C++ or whatever

      • @[email protected]
        link
        fedilink
        12 months ago

        Is it? I thought a script is a portable and instantly grokkable piece of code that can be easily modified by others, since it uses very little actual code in itself (e.g. by being reliant on larger imported frameworks), and thus not being a full-fledged application.

        The above code is pretty much self-contained, and though it is impressively minimal, it is not instantly grokkable, and I would have a hard time modifying it.

        • @[email protected]
          link
          fedilink
          22 months ago

          Fair enough. For me, scripts are small reusable programs performing a very specific (sometimes trivial or common) task. Eg: making a wav file from PCM data, modifying byte sequences or formatted text in a particular way, etc. I mostly program in C so I have written most scripts in C. Need not necessarily be grokkable as long as its application and scope is clear

          • @[email protected]
            link
            fedilink
            12 months ago

            Need not necessarily be grokkable as long as its application and scope is clear

            Well that’s a fair point.

    • christosOP
      link
      12 months ago

      I stand corrected.

  • @[email protected]
    link
    fedilink
    2
    edit-2
    2 months ago

    Well, first of all, through a framebuffer, all graphics inside a virtual terminal are possible, so jot that down

    mac_its_always_sunny.gif

    • christosOP
      link
      62 months ago

      I am a linux user, this is a FOSS project that I created.

      This is a project that makes my linux experience more pleasant.

      Is this a project that might interest other linux users, or might make their experience better?

      Judging from the 49 upvotes so far, yes.

      Do you share the same opinion? I don’t know.

      If not, feel free to downvote, and/or move on.