ayushunleashed/hilbert-curve-effect

Convert any image to Hilbert space filling curve effect.

Public
32 runs

Input

image
file

Input image

Default: "https://replicate.delivery/xezq/FfVLnz7eTArJLUg61m9xoY9JKgNsaQ0tShiZEdcWoHqAVSxUA/tmpyjkgkg4e.jpg"

integer
(minimum: 4, maximum: 10)

Hilbert curve complexity (higher = more detail)

Default: 7

number
(minimum: 0.1, maximum: 5)

Line width in pixels

Default: 1

number
(minimum: 0, maximum: 0.8)

Gap size between curve segments

Default: 0.3

number
(minimum: 0.5, maximum: 2)

Brightness multiplier

Default: 1

Output

output
Generated in

This output was created using a different version of the model, ayushunleashed/hilbert-curve-effect:8149fb5c.

Run time and cost

This model runs on CPU hardware. We don't yet have enough runs of this model to provide performance information.

Readme

Hilbert Curve Effect - Replicate Model

Transform images using a space-filling Hilbert curve pattern that preserves colors while creating an artistic effect.

Model Description

This model traces a Hilbert curve through your image, sampling colors along the path and recreating the image with an artistic curve pattern. The effect maintains the original image’s colors while adding a unique mathematical structure.

Inputs

  • image: Input image (required)
  • order: Hilbert curve complexity, 4-10 (default: 7)
  • Higher values create more detailed curves
  • Lower values create bolder, simpler patterns
  • line_width: Line thickness in pixels, 0.1-5.0 (default: 1.0)
  • gap_size: Gap between curve segments, 0.0-0.8 (default: 0.3)
  • 0 = no gaps (continuous line)
  • Higher values = more visible curve pattern
  • brightness: Brightness adjustment, 0.5-2.0 (default: 1.0)

Output

Processed image with Hilbert curve effect applied.

Examples

Detailed pattern

order: 9
line_width: 0.5
gap_size: 0.2
brightness: 1.0

Bold artistic effect

order: 6
line_width: 3.0
gap_size: 0.5
brightness: 1.2

Subtle enhancement

order: 8
line_width: 1.0
gap_size: 0.1
brightness: 1.0