Public
Like
wondrousCyanBat
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
This is a HTTP Val that generates a hand-drawn card using SVG. The card has a wavy outline with smooth corners that give it a hand-drawn appearance.
- Dynamically generates an SVG card with wavy edges
- Uses mathematical algorithms to create a natural hand-drawn look
- Implements a seeded random number generator for reproducible variations
- Allows generating new variations with the click of a button
The card is generated using these main steps:
- Creates points along a rounded rectangle path
- Adds random variations to each point to create a hand-drawn effect
- Uses Bezier curves for smooth transitions between points
- Renders the card with a white fill and black outline
Visit this Val directly to see the generated card. Click the "Generate New Variation" button to create a new random card shape. Each variation uses a seed value that can be shared via URL parameter for reproducibility.