drawdist.app is a web application that lets your draw an arbitrary probability distribution function and then draw samples from the distribution. Samples are automatically copied to clipboard however they can also be downloaded.
Users may also upload a photo as a reference image to trace for the distribution (for example a bar chart π or a visual representation of an unknown function π).
drawdist.app is build entirely in ReactJS and all the code runs locally in the users browser. The app is compatible with multiple platforms and works with both a mouse and touch events.
If you enjoy drawdist.app you can support us on Ko-fi!
npm ci
npm start
npm run build
src holds the website source code.
Calcs holds all the JavaScript code required to perform the calculations that covert the provided PDF into a CDF which can be used to draw samples from
Front end components that build the web application such as the canvas, appbar, parameter fields, sampler and visualisations.
The contexts folder holds the global state of the application, state is managed exclusively with the React context API.