Section backgrounds

Teal Lattice

Fourteen nodes and a Randomness value of 6 give a gently rippled circle. A cyan diamond pattern fills it with a fine lattice.

patterntexturecalmbackground

Download

SVG file

Seed 28152 · 14 nodes · randomness 6

Code

Copy the code.

SVG markup
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500" width="100%"><defs><pattern id="blob-pattern" patternUnits="userSpaceOnUse" width="20" height="28"><path d="M5 0L10 7L5 14L0 7ZM15 14L20 21L15 28L10 21Z" fill="#01b1cf" fill-rule="evenodd"/></pattern></defs><path d="M437.5,301Q462,352,414,373.5Q366,395,329,413.5Q292,432,244,458.5Q196,485,149.5,459.5Q103,434,97,380Q91,326,55,288Q19,250,34.5,202Q50,154,85,120.5Q120,87,159,54Q198,21,249,26Q300,31,352,44Q404,57,436.5,100.5Q469,144,441,197Q413,250,437.5,301Z" fill="url(#blob-pattern)"/></svg>
CSS clip-path
.blob {
  width: 500px;
  height: 500px;
  clip-path: path("M437.5,301Q462,352,414,373.5Q366,395,329,413.5Q292,432,244,458.5Q196,485,149.5,459.5Q103,434,97,380Q91,326,55,288Q19,250,34.5,202Q50,154,85,120.5Q120,87,159,54Q198,21,249,26Q300,31,352,44Q404,57,436.5,100.5Q469,144,441,197Q413,250,437.5,301Z");
}
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 patternId = `blob-pattern-${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>
        <pattern id={patternId} patternUnits="userSpaceOnUse" width="20" height="28">
          <path d="M5 0L10 7L5 14L0 7ZM15 14L20 21L15 28L10 21Z" fill="#01b1cf" fillRule="evenodd" />
        </pattern>
      </defs>
      <path
        d="M437.5,301Q462,352,414,373.5Q366,395,329,413.5Q292,432,244,458.5Q196,485,149.5,459.5Q103,434,97,380Q91,326,55,288Q19,250,34.5,202Q50,154,85,120.5Q120,87,159,54Q198,21,249,26Q300,31,352,44Q404,57,436.5,100.5Q469,144,441,197Q413,250,437.5,301Z"
        fill={`url(#${patternId})`}
      />
    </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(437.5 * sx, 301.0 * sy);
  path.quadraticBezierTo(462.0 * sx, 352.0 * sy, 414.0 * sx, 373.5 * sy);
  path.quadraticBezierTo(366.0 * sx, 395.0 * sy, 329.0 * sx, 413.5 * sy);
  path.quadraticBezierTo(292.0 * sx, 432.0 * sy, 244.0 * sx, 458.5 * sy);
  path.quadraticBezierTo(196.0 * sx, 485.0 * sy, 149.5 * sx, 459.5 * sy);
  path.quadraticBezierTo(103.0 * sx, 434.0 * sy, 97.0 * sx, 380.0 * sy);
  path.quadraticBezierTo(91.0 * sx, 326.0 * sy, 55.0 * sx, 288.0 * sy);
  path.quadraticBezierTo(19.0 * sx, 250.0 * sy, 34.5 * sx, 202.0 * sy);
  path.quadraticBezierTo(50.0 * sx, 154.0 * sy, 85.0 * sx, 120.5 * sy);
  path.quadraticBezierTo(120.0 * sx, 87.0 * sy, 159.0 * sx, 54.0 * sy);
  path.quadraticBezierTo(198.0 * sx, 21.0 * sy, 249.0 * sx, 26.0 * sy);
  path.quadraticBezierTo(300.0 * sx, 31.0 * sy, 352.0 * sx, 44.0 * sy);
  path.quadraticBezierTo(404.0 * sx, 57.0 * sy, 436.5 * sx, 100.5 * sy);
  path.quadraticBezierTo(469.0 * sx, 144.0 * sy, 441.0 * sx, 197.0 * sy);
  path.quadraticBezierTo(413.0 * sx, 250.0 * sy, 437.5 * sx, 301.0 * sy);
  path.close();
  return path;
}

class BlobPainter extends CustomPainter {
  const BlobPainter();

  @override
  void paint(Canvas canvas, Size size) {
    final Path path = buildBlobPath(size);
    // Pattern and image fills are not supported in this exporter; use the SVG export.
    final Paint paint = Paint()
      ..isAntiAlias = true
      ..color = const 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