Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting from a seed? #8

Open
arronhunt opened this issue Sep 14, 2022 · 1 comment
Open

Starting from a seed? #8

arronhunt opened this issue Sep 14, 2022 · 1 comment

Comments

@arronhunt
Copy link

I noticed the class function accepts a wave parameter that isn't documented. I assumed I could use this to seed the wave and it kinda works.

// Works fine, first cell is 0
let wfc = new WFC({ nd, rules, weight, wave: { "0,0": 0 } });

// Doesn't work :( fills the wave with `undefined`
let wfc = new WFC({ nd, rules, weights, wave: { "1,0": 0 } });

Is it possible to provide one (or multiple) starting values and allow the wave to collapse around them?

@JackTezos
Copy link

+1, I would also like to have this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants