Why Nostr? What is Njump?
2024-10-03 18:03:25

Karsten Schmidt on Nostr: More exciting updates to , an API for browser-based generative artworks: - added two ...

More exciting updates to https://thi.ng/genart-api, an API for browser-based generative artworks:

- added two list param types (numeric & string)
- added support for composite/nested param types, esp. interesting for custom param types declared by artworks and/or platforms
- updated the first (of two) GUI param editors in the reference implementation to support composite params
- added new example showcasing custom & composite param types (oscillators)

New example w/ editor (make sure to select the "imgui" editor):
https://demo.thi.ng/genart-api/param-editors/?url=https://demo.thi.ng/genart-api/param-custom/

Example source code:
https://github.com/thi-ng/genart-api/blob/main/examples/param-custom/src/index.ts

To explain a bit further: The example defines a custom oscillator parameter type, which itself consists of multiple sub-params to configure waveform, frequency, amplitude etc. Using the GenArtAPI messaging protocol, the external param editor (not knowing anything about the artwork or this custom param type) can still provide GUI widgets to customize the 2 oscillators used... Likewise, the artwork is completely decoupled from how those oscillator values are being computed or how they're customized via the editor...

#GenArtAPI #GenerativeArt #Art #API #Interop #OpenSource #ArtMaking #Workflow #TypeScript #JavaScript
Author Public Key
npub13t480fdgej2k3fjk5e7sqhqks7wnlgldmpwsec7772z4pyr3yumq2wn30g