Show pattern creation and configuration object based on the values set in the demo controls panel so that a user could copy and paste the working implementation. For example,
const pattern = new PerlinNoisePattern({
octaves: 4,
frequency: 0.05,
lacunarity: 2,
});
const ascii = new ASCIIGround()
.init({
canvas,
pattern,
{
color: "#20FBCA",
backgroundColor: "#FF00FA",
characters: ["1", "+", "#", "-"],
}
})
Acceptance criteria:
- Code is shown and updated when control values change.
- There is a button to copy the generated code.
- Pressing the copy button alongside the code block copies the code to the clipboard.
Show pattern creation and configuration object based on the values set in the demo controls panel so that a user could copy and paste the working implementation. For example,
Acceptance criteria: