8 comments

  • heyitsgarrett 3 hours ago
    Oh thanks for sharing this! I love asesprite, procreate, pico8 and had this idea for programmable brushes bonking around my head for years now. Recently took some time between projects to put it together.

    MOSS is a drawing toy where each brush is a tiny script that knows about every pixel on the canvas. You define how it paints with noise, randomness, patterns, stroke speed, pressure, and every touch executes the code.

    So you can have a brush that scatters pixels like a real spray can or one that stamps shapes that mutate as you drag. Or perspective lines that actually converge. Or a fill bucket with smart gap awareness (I called it "Fill of my Dreams" and added to the brush list).

    Happy to share brush code in the comments or explore ideas together. There's a (?) in the bottom right toolbar with API docs, and a prompt copy at the bottom if you wanted to work with the API through an agent.

    • Lambdanaut 1 hour ago
      I love how fun this is. It has so much personality. Definitely can see the pico8 and aseprite inspiration.

      I think what could be really interesting is some procedural generation brushes... Like a brush that generates a random city-scape as you draw it. That sounds so exciting..

      Maybe using wave function collapse:

      > https://nathanmcoleman.com/projects/wavecollapse/

  • RodgerTheGreat 1 hour ago
    Moss looks much more general and powerful, but Decker has a similar mechanism for custom brush behavior; here's an interactive tutorial with a variety of examples, for comparison: http://beyondloom.com/decker/brushes.html
  • Klonoar 1 hour ago
    This is amazing.

    Could you add support for holding `Shift` to keep your line straight while painting, ala MSPaint?

  • od0 1 hour ago
    This is the most fun I’ve had drawing with pixels since I was a kid
  • olivia-banks 1 hour ago
    This is a seriously fun tool. Bravo!
  • mpalmer 2 hours ago
    Absolutely lovely design, thanks for the share and the inspiration
  • adammarples 35 minutes ago
    In what way is a brush a program? How do I program it? I've spent 5 minutes and clicked on every single thing I can find but I give up looking.
    • heyitsgarrett 25 minutes ago
      If you hover next to the brush in the Edit mode as well, theres a tiny pencil icon there that opens that brush's code. Sorry it was hard to discover!
    • jammaloo 28 minutes ago
      Click "Editor", then click "Add a brush".
  • zelez 9 hours ago
    [dead]