Wide backgrounds

Verdant Shoal

Twenty nodes at a mid Randomness value give a closely rippled edge, with a green to cyan gradient rising from the bottom-left corner.

gradientdensecoolbackground

Download

SVG file

Seed 1919 · 20 nodes · randomness 5

Code

Copy the code.

SVG markup
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500" width="100%"><defs><linearGradient id="blob-gradient" x1="0.146" y1="0.854" x2="0.854" y2="0.146"><stop offset="0" stop-color="#22c55e"/><stop offset="1" stop-color="#01b1cf"/></linearGradient></defs><path d="M406,276Q409,302,417,339.5Q425,377,393,389.5Q361,402,333.5,412Q306,422,278,436.5Q250,451,217.5,450Q185,449,154,437Q123,425,126.5,381Q130,337,83.5,328Q37,319,44,284.5Q51,250,35,212.5Q19,175,58,157Q97,139,103.5,98Q110,57,147.5,53.5Q185,50,217.5,68Q250,86,271.5,101.5Q293,117,312,128Q331,139,353.5,149Q376,159,399.5,176.5Q423,194,413,222Q403,250,406,276Z" fill="url(#blob-gradient)"/></svg>
CSS clip-path
.blob {
  width: 500px;
  height: 500px;
  clip-path: path("M406,276Q409,302,417,339.5Q425,377,393,389.5Q361,402,333.5,412Q306,422,278,436.5Q250,451,217.5,450Q185,449,154,437Q123,425,126.5,381Q130,337,83.5,328Q37,319,44,284.5Q51,250,35,212.5Q19,175,58,157Q97,139,103.5,98Q110,57,147.5,53.5Q185,50,217.5,68Q250,86,271.5,101.5Q293,117,312,128Q331,139,353.5,149Q376,159,399.5,176.5Q423,194,413,222Q403,250,406,276Z");
}
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}`;
  const gradientId = `blob-gradient-${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}
      <defs>
        <linearGradient id={gradientId} x1="0.146" y1="0.854" x2="0.854" y2="0.146">
          <stop offset="0" stopColor="#22c55e" />
          <stop offset="1" stopColor="#01b1cf" />
        </linearGradient>
      </defs>
      <path
        d="M406,276Q409,302,417,339.5Q425,377,393,389.5Q361,402,333.5,412Q306,422,278,436.5Q250,451,217.5,450Q185,449,154,437Q123,425,126.5,381Q130,337,83.5,328Q37,319,44,284.5Q51,250,35,212.5Q19,175,58,157Q97,139,103.5,98Q110,57,147.5,53.5Q185,50,217.5,68Q250,86,271.5,101.5Q293,117,312,128Q331,139,353.5,149Q376,159,399.5,176.5Q423,194,413,222Q403,250,406,276Z"
        fill={`url(#${gradientId})`}
      />
    </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(406.0 * sx, 276.0 * sy);
  path.quadraticBezierTo(409.0 * sx, 302.0 * sy, 417.0 * sx, 339.5 * sy);
  path.quadraticBezierTo(425.0 * sx, 377.0 * sy, 393.0 * sx, 389.5 * sy);
  path.quadraticBezierTo(361.0 * sx, 402.0 * sy, 333.5 * sx, 412.0 * sy);
  path.quadraticBezierTo(306.0 * sx, 422.0 * sy, 278.0 * sx, 436.5 * sy);
  path.quadraticBezierTo(250.0 * sx, 451.0 * sy, 217.5 * sx, 450.0 * sy);
  path.quadraticBezierTo(185.0 * sx, 449.0 * sy, 154.0 * sx, 437.0 * sy);
  path.quadraticBezierTo(123.0 * sx, 425.0 * sy, 126.5 * sx, 381.0 * sy);
  path.quadraticBezierTo(130.0 * sx, 337.0 * sy, 83.5 * sx, 328.0 * sy);
  path.quadraticBezierTo(37.0 * sx, 319.0 * sy, 44.0 * sx, 284.5 * sy);
  path.quadraticBezierTo(51.0 * sx, 250.0 * sy, 35.0 * sx, 212.5 * sy);
  path.quadraticBezierTo(19.0 * sx, 175.0 * sy, 58.0 * sx, 157.0 * sy);
  path.quadraticBezierTo(97.0 * sx, 139.0 * sy, 103.5 * sx, 98.0 * sy);
  path.quadraticBezierTo(110.0 * sx, 57.0 * sy, 147.5 * sx, 53.5 * sy);
  path.quadraticBezierTo(185.0 * sx, 50.0 * sy, 217.5 * sx, 68.0 * sy);
  path.quadraticBezierTo(250.0 * sx, 86.0 * sy, 271.5 * sx, 101.5 * sy);
  path.quadraticBezierTo(293.0 * sx, 117.0 * sy, 312.0 * sx, 128.0 * sy);
  path.quadraticBezierTo(331.0 * sx, 139.0 * sy, 353.5 * sx, 149.0 * sy);
  path.quadraticBezierTo(376.0 * sx, 159.0 * sy, 399.5 * sx, 176.5 * sy);
  path.quadraticBezierTo(423.0 * sx, 194.0 * sy, 413.0 * sx, 222.0 * sy);
  path.quadraticBezierTo(403.0 * sx, 250.0 * sy, 406.0 * sx, 276.0 * 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
      ..shader = ui.Gradient.linear(
        Offset(size.width * 0.146, size.height * 0.854),
        Offset(size.width * 0.854, size.height * 0.146),
        const <Color>[Color(0xFF22C55E), Color(0xFF01B1CF)],
      );
    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