This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const canvasSketch = require('canvas-sketch'); | |
const Random = require("canvas-sketch-util/random"); | |
// ****** If using random ****** | |
// Set a random seed so we can reproduce this print later | |
const defaultSeed = ""; | |
Random.setSeed(defaultSeed || Random.getRandomSeed()); | |
// Print to console so we can see which seed is being used and copy it if desired | |
console.log("Random Seed:", Random.getSeed()); |