Stylised flat cloud/fog/mist shape SVG generator with various configuration options. This repository contains all the UI elements (Vue.js in TypeScript) and Vue-Bootrstrap based components.
If your are only looking for the actual generator, check out the src/generator/CloudGenerator.ts
file. Don't worry if you are not ready for TypeScript, you can transpile your own using the Playground).
import CloudGenerator from 'CloudGenerator'
const config: CloudGeneratorConfig = {
width: 11,
height: 5,
randomness: 3,
renderRadius: 10,
holeTreshold: 0
}
const generator = new CloudGenerator(config)
console.log(generator.generate().export())
- Composition showcase, cloud animations to make it feel alive. (maybe)
- Add shape support for cloud treshold. (maybe)
You will need NodeJS version from .nvmrc
and pnpm version installed first and then you can simply run the application by using:
pnpm install
pnpm run dev
pnpm run build