From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <9front-bounces@9front.inri.net> X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from 9front.inri.net (9front.inri.net [168.235.81.73]) by inbox.vuxu.org (Postfix) with ESMTP id 5F7A02A6ED for ; Sun, 11 Aug 2024 23:28:21 +0200 (CEST) Received: from sirjofri.de ([5.45.105.127]) by 9front; Sun Aug 11 17:25:59 -0400 2024 Received: from dummy.faircode.eu ([31.16.254.19]) by sirjofri.de; Sun Aug 11 23:25:50 +0200 2024 Date: Sun, 11 Aug 2024 23:25:49 +0200 (GMT+02:00) From: sirjofri To: 9front@9front.org Message-ID: <96ee9069-04cf-411f-a562-1c23676624f6@sirjofri.de> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Correlation-ID: <96ee9069-04cf-411f-a562-1c23676624f6@sirjofri.de> List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: hardware database database-aware package-aware property API Subject: Re: [9front] Blie - blended layers image editor Reply-To: 9front@9front.org Precedence: bulk 11.08.2024 20:50:22 sl@stanleylieber.com: > paint(1) has some nice design choices. following programs like sam > and acme, you can do things like this: > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 Executes command and reads the canvas from its standard > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 output. > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 >command > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 Executes command and writes the canvas to its standard > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 input. > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |command > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 Transforms the canvas by piping it through command. > > this allows a lot of features to be towed outside the layer-compositing > program entirely, and any such tools can also be reused for other > applications. Yes, exactly. In blie, that should be easily doable as an effect/pipe layer, which would = be a separate layer type that doesn't have any bitmap data itself, but pipe= s the image through any command (or commands) you'd like, for example a blo= om filter. The bonus would be that this is non-destructive, so you can adjust the base= layers and still get the same effect added on it. You can also move that l= ayer around, which changes the image, but you don't lose any data. That's also the idea behind farbfeld (if you want to look at it): have an i= mage format that's as simple as possible so you can send the data in a pipe= . Farbfeld is not primarily designed as a storage format, more like an inte= rmediate format: png2ff dst.png. (I = don't plan to add farbfeld support as it's not a plan 9 thing. I built some= ff to plan 9 image converter a while ago though.) sirjofri