victoriafoxgirl / Zylinderino

0 stars 2 forks source link

Multi-Mode #12

Open victoriafoxgirl opened 3 years ago

victoriafoxgirl commented 3 years ago

Have two modes overlapping, for example Zepelli mode + circle, or Rainbow + Text

victoriafoxgirl commented 3 years ago

Idea for implementation: Each mode has it's own independend framebuffer, and in the end they all get merged (may be memory intensive? should be fine)

-> Possibility to overlay multiple instances of the same mode (gotta name classes though!) (I heard new and destroy is bad practice on embedded)

Multiple overlay modes: Add (may produce a lot of white), Overwrite (may look jarring), Average (may be dark?)

victoriafoxgirl commented 3 years ago

Idea for stacking websites: Make the Website global (or not, then index^=pointer), and when assembling the website, give each website-method an index at which the webpage-block inserts itself and increments the index

victoriafoxgirl commented 3 years ago

Have a linked list of pointers to modes, replacing the pCurrentMode pointer this enables iterating over the linked list for webpage building, webhandling, updating, and most importantly: determining the order of modes overlaid over each other