Badge shapes

Amber Crown

Twelve nodes at the lowest Randomness value alternate long points with deep notches, in solid amber.

solidirregularboldicon

Download

SVG file

Seed 2727 · 12 nodes · randomness 2

Code

Copy the code.

SVG markup
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500" width="100%"><path d="M374,282.5Q363,315,351,359.5Q339,404,294.5,370.5Q250,337,189,399.5Q128,462,96,409.5Q64,357,120.5,303.5Q177,250,183,232.5Q189,215,205,207.5Q221,200,235.5,186.5Q250,173,293,137Q336,101,346.5,144.5Q357,188,371,219Q385,250,374,282.5Z" fill="#f59e0b"/></svg>
CSS clip-path
.blob {
  width: 500px;
  height: 500px;
  clip-path: path("M374,282.5Q363,315,351,359.5Q339,404,294.5,370.5Q250,337,189,399.5Q128,462,96,409.5Q64,357,120.5,303.5Q177,250,183,232.5Q189,215,205,207.5Q221,200,235.5,186.5Q250,173,293,137Q336,101,346.5,144.5Q357,188,371,219Q385,250,374,282.5Z");
}
React component
/**
 * Blob — generated by blobs.app.
 *
 * Drop this file into your project and render <Blob /> anywhere.
 */
import { useId } from 'react';

export interface BlobProps {
  /** Rendered width and height. A number is treated as px. Defaults to 100%. */
  size?: number | string;
  /** Class name for the root svg element. */
  className?: string;
  /** Accessible name. Without it the graphic is hidden from assistive tech. */
  title?: string;
}

export function Blob({ size = '100%', className, title }: BlobProps) {
  // Unique per instance, so two blobs on one page never share a def id.
  const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
  const titleId = `blob-title-${uid}`;

  return (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      viewBox="0 0 500 500"
      width={size}
      height={size}
      className={className}
      role={title ? 'img' : undefined}
      aria-labelledby={title ? titleId : undefined}
      aria-hidden={title ? undefined : true}
    >
      {title ? <title id={titleId}>{title}</title> : null}
      <path
        d="M374,282.5Q363,315,351,359.5Q339,404,294.5,370.5Q250,337,189,399.5Q128,462,96,409.5Q64,357,120.5,303.5Q177,250,183,232.5Q189,215,205,207.5Q221,200,235.5,186.5Q250,173,293,137Q336,101,346.5,144.5Q357,188,371,219Q385,250,374,282.5Z"
        fill="#f59e0b"
      />
    </svg>
  );
}

export default Blob;
Flutter painter
// Generated by blobs.app.
//
// Paint the blob:
//   CustomPaint(painter: BlobPainter(), size: const Size(300, 300))
//
// Or clip a widget to it:
//   ClipPath(clipper: BlobClipper(), child: child)

import 'dart:ui' as ui;

import 'package:flutter/material.dart';

/// The blob outline, scaled from its 500x500 design space to [size].
Path buildBlobPath(Size size) {
  final double sx = size.width / 500.0;
  final double sy = size.height / 500.0;
  final Path path = Path();
  path.moveTo(374.0 * sx, 282.5 * sy);
  path.quadraticBezierTo(363.0 * sx, 315.0 * sy, 351.0 * sx, 359.5 * sy);
  path.quadraticBezierTo(339.0 * sx, 404.0 * sy, 294.5 * sx, 370.5 * sy);
  path.quadraticBezierTo(250.0 * sx, 337.0 * sy, 189.0 * sx, 399.5 * sy);
  path.quadraticBezierTo(128.0 * sx, 462.0 * sy, 96.0 * sx, 409.5 * sy);
  path.quadraticBezierTo(64.0 * sx, 357.0 * sy, 120.5 * sx, 303.5 * sy);
  path.quadraticBezierTo(177.0 * sx, 250.0 * sy, 183.0 * sx, 232.5 * sy);
  path.quadraticBezierTo(189.0 * sx, 215.0 * sy, 205.0 * sx, 207.5 * sy);
  path.quadraticBezierTo(221.0 * sx, 200.0 * sy, 235.5 * sx, 186.5 * sy);
  path.quadraticBezierTo(250.0 * sx, 173.0 * sy, 293.0 * sx, 137.0 * sy);
  path.quadraticBezierTo(336.0 * sx, 101.0 * sy, 346.5 * sx, 144.5 * sy);
  path.quadraticBezierTo(357.0 * sx, 188.0 * sy, 371.0 * sx, 219.0 * sy);
  path.quadraticBezierTo(385.0 * sx, 250.0 * sy, 374.0 * sx, 282.5 * sy);
  path.close();
  return path;
}

class BlobPainter extends CustomPainter {
  const BlobPainter();

  @override
  void paint(Canvas canvas, Size size) {
    final Path path = buildBlobPath(size);
    final Paint paint = Paint()
      ..isAntiAlias = true
      ..color = const Color(0xFFF59E0B);
    canvas.drawPath(path, paint);
  }

  @override
  bool shouldRepaint(covariant BlobPainter oldDelegate) => false;
}

/// Clips any widget to the same shape: ClipPath(clipper: BlobClipper(), ...).
class BlobClipper extends CustomClipper<Path> {
  const BlobClipper();

  @override
  Path getClip(Size size) => buildBlobPath(size);

  @override
  bool shouldReclip(covariant CustomClipper<Path> oldClipper) => false;
}

Shapes

Shapes like this one