Foone🏳️⚧️ on Nostr: oh that's cute. their set_palette function takes two arguments: a pointer to the ...
oh that's cute. their set_palette function takes two arguments: a pointer to the palette, and a number of extra palettes to apply.
so they could set up an array of palettes in decreasing brightness, and just do set_palette(&fade_pallets[0], 64) to go through them.
but the same function is a regular one-time set_palette if you just pass 1 for the second argument.
Published at
2024-11-25 09:35:08Event JSON
{
"id": "acd92c5bb11284e768077e708b5a944a0fee9316d77b8d6b254af9e8884ef059",
"pubkey": "8d0c6793de7edd25b3e6fcfd2e4e9b301cec2c7e577a9dcf0247e64d7c3c737e",
"created_at": 1732527308,
"kind": 1,
"tags": [
[
"e",
"5ee3aa7222ca81be851b63ea687fb36be4891c0d19b6fe40fb40ed12dd3fbb92",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://digipres.club/users/foone/statuses/113542909686807229",
"activitypub"
]
],
"content": "oh that's cute. their set_palette function takes two arguments: a pointer to the palette, and a number of extra palettes to apply. \n\nso they could set up an array of palettes in decreasing brightness, and just do set_palette(\u0026fade_pallets[0], 64) to go through them.\n\nbut the same function is a regular one-time set_palette if you just pass 1 for the second argument.",
"sig": "812253a8052c6bfab6787ae145a26851deac6c0f253983afecd8470e59f6517701f44030cace496589c33ccde7beb174c400a84cfcb9970f8261d487675168b0"
}