Landing hero panels

Sunrise Ripple

Eighteen nodes at a mid Randomness value give a finely scalloped edge. A yellow to raspberry gradient runs from the top-left corner toward the bottom-right.

gradientdensewarmhero

Download

SVG file

Seed 1111 · 18 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.146" x2="0.854" y2="0.854"><stop offset="0" stop-color="#ffd166"/><stop offset="1" stop-color="#ef476f"/></linearGradient></defs><path d="M388,277Q399,304,411.5,350Q424,396,394,422Q364,448,328,468Q292,488,256,454.5Q220,421,196.5,402Q173,383,146,371.5Q119,360,106.5,333.5Q94,307,81,278.5Q68,250,66,216Q64,182,84,155Q104,128,128.5,105.5Q153,83,183.5,65.5Q214,48,243,87Q272,126,298,124Q324,122,338.5,142.5Q353,163,416,165Q479,167,428,208.5Q377,250,388,277Z" fill="url(#blob-gradient)"/></svg>
CSS clip-path
.blob {
  width: 500px;
  height: 500px;
  clip-path: path("M388,277Q399,304,411.5,350Q424,396,394,422Q364,448,328,468Q292,488,256,454.5Q220,421,196.5,402Q173,383,146,371.5Q119,360,106.5,333.5Q94,307,81,278.5Q68,250,66,216Q64,182,84,155Q104,128,128.5,105.5Q153,83,183.5,65.5Q214,48,243,87Q272,126,298,124Q324,122,338.5,142.5Q353,163,416,165Q479,167,428,208.5Q377,250,388,277Z");
}
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.146" x2="0.854" y2="0.854">
          <stop offset="0" stopColor="#ffd166" />
          <stop offset="1" stopColor="#ef476f" />
        </linearGradient>
      </defs>
      <path
        d="M388,277Q399,304,411.5,350Q424,396,394,422Q364,448,328,468Q292,488,256,454.5Q220,421,196.5,402Q173,383,146,371.5Q119,360,106.5,333.5Q94,307,81,278.5Q68,250,66,216Q64,182,84,155Q104,128,128.5,105.5Q153,83,183.5,65.5Q214,48,243,87Q272,126,298,124Q324,122,338.5,142.5Q353,163,416,165Q479,167,428,208.5Q377,250,388,277Z"
        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(388.0 * sx, 277.0 * sy);
  path.quadraticBezierTo(399.0 * sx, 304.0 * sy, 411.5 * sx, 350.0 * sy);
  path.quadraticBezierTo(424.0 * sx, 396.0 * sy, 394.0 * sx, 422.0 * sy);
  path.quadraticBezierTo(364.0 * sx, 448.0 * sy, 328.0 * sx, 468.0 * sy);
  path.quadraticBezierTo(292.0 * sx, 488.0 * sy, 256.0 * sx, 454.5 * sy);
  path.quadraticBezierTo(220.0 * sx, 421.0 * sy, 196.5 * sx, 402.0 * sy);
  path.quadraticBezierTo(173.0 * sx, 383.0 * sy, 146.0 * sx, 371.5 * sy);
  path.quadraticBezierTo(119.0 * sx, 360.0 * sy, 106.5 * sx, 333.5 * sy);
  path.quadraticBezierTo(94.0 * sx, 307.0 * sy, 81.0 * sx, 278.5 * sy);
  path.quadraticBezierTo(68.0 * sx, 250.0 * sy, 66.0 * sx, 216.0 * sy);
  path.quadraticBezierTo(64.0 * sx, 182.0 * sy, 84.0 * sx, 155.0 * sy);
  path.quadraticBezierTo(104.0 * sx, 128.0 * sy, 128.5 * sx, 105.5 * sy);
  path.quadraticBezierTo(153.0 * sx, 83.0 * sy, 183.5 * sx, 65.5 * sy);
  path.quadraticBezierTo(214.0 * sx, 48.0 * sy, 243.0 * sx, 87.0 * sy);
  path.quadraticBezierTo(272.0 * sx, 126.0 * sy, 298.0 * sx, 124.0 * sy);
  path.quadraticBezierTo(324.0 * sx, 122.0 * sy, 338.5 * sx, 142.5 * sy);
  path.quadraticBezierTo(353.0 * sx, 163.0 * sy, 416.0 * sx, 165.0 * sy);
  path.quadraticBezierTo(479.0 * sx, 167.0 * sy, 428.0 * sx, 208.5 * sy);
  path.quadraticBezierTo(377.0 * sx, 250.0 * sy, 388.0 * sx, 277.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.146),
        Offset(size.width * 0.854, size.height * 0.854),
        const <Color>[Color(0xFFFFD166), Color(0xFFEF476F)],
      );
    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