HashLips / generative-art-opensource

Create generative art by using the canvas api and node js, feel free to contribute to this repo with new ideas.
MIT License
1.36k stars 695 forks source link

Conditional/exclusion layer combinations #56

Open fspseva opened 2 years ago

fspseva commented 2 years ago

I would like to setup a conditional appearance of some layers based on specific combinations:

const layers = [ addLayer('layer1', { x: 0, y: 0 }, { width: width, height: height }), addLayer('layer2'), addLayer('layer3'), addLayer('layer4') or addLayer('layer5') if addLayer('layer5') then addLayer('layer6')

Is it possible something like this?

iambajo commented 2 years ago

im interested in this too for sure :)