1. Colour science
- Perceptual spaces. Palettes, scales and gradients are computed in OKLCH/OKLab (Björn Ottosson, 2020) via the open-source
culorilibrary, so lightness steps look even and hue rotations keep saturation consistent. - Gamut mapping. Colours outside sRGB are chroma-clamped in OKLCH before conversion to HEX, preserving hue and lightness.
- Contrast. Ratios follow the WCAG 2.x relative-luminance formula; labels use the AA (4.5:1), AA Large (3:1) and AAA (7:1) thresholds.
- Extraction. Image colours are clustered with k-means (k-means++ seeding, fixed seed) in OKLab on a downscaled copy and ranked by pixel share.
2. Procedural and generative algorithms
- Noise. Simplex noise (
simplex-noise), improved Perlin noise (Perlin 2002) and Worley/cellular noise, combined as fractal Brownian motion. - Seamless tiling. Tileable textures sample 4D simplex noise on a torus, or a periodic Perlin lattice, so opposite edges match exactly.
- Voronoi. Delaunay triangulation via
d3-delaunaywith optional Lloyd relaxation. - Shapes. Blobs and waves use Catmull-Rom splines converted to cubic Béziers. Supershapes use Gielis's superformula. Terrain uses ridged fBm with domain warping.
- Reproducibility. Every generator uses a seeded PRNG (mulberry32): the same seed and settings always reproduce the same output.
3. Image processing and encoding
- Decoding uses the browser's native decoders (
createImageBitmap). Resizing uses high-quality smoothing with progressive halving for large reductions, inside a Web Worker with OffscreenCanvas when supported. - Encoding uses the browser's PNG, JPEG and WebP encoders. Safari can't encode WebP; the tools detect this and tell you.
- Re-encoding strips EXIF metadata, including GPS location.
- Pixel art uses median-cut quantisation with optional Floyd–Steinberg dithering. Halftone screens use classic CMYK angles (C 15°, M 75°, Y 0°, K 45°).
- Normal maps use a 3×3 Sobel operator on luminance, in OpenGL (Y+) convention by default.
4. 3D, WebGL and export fidelity
- 3D tools use
three.jswith physically based materials, ACES tone mapping and a procedural room environment for lighting, so no HDR files are downloaded. - GLB files are written with Three.js
GLTFExporter(binary glTF 2.0); OBJ withOBJExporter. Models open in Blender, Unity, Unreal and any glTF viewer. - The GLB Viewer parses files locally and doesn't load Draco or Meshopt decoders, which would need a network download.
- SVG optimisation uses SVGO 4 in the browser. All SVG output is sanitised: scripts, event handlers,
foreignObjectandjavascript:links are removed.
5. Verified client-side privacy and offline behaviour
The site is a static export: there is no application server or database. Each tool is a separate JavaScript chunk that loads when you open its page. Once a tool has loaded, it keeps working without a network connection, and you can confirm in your browser's Network tab that using it sends no file data anywhere. Fonts for type tools are bundled with the site, not fetched from a font service. Analytics and ads are described in the Privacy Policy.
6. Scope, limits and reporting errors
Very large images and dense meshes are limited by your device's memory and GPU. Colour output is in sRGB; check print work with your printer's ICC profile. Found a calculation, rendering or export problem? Email hello@vyompaknikar.com with the tool URL, browser and settings.