Constructor

VipsImageworley

Declaration [src]

int
vips_worley (
  VipsImage** out,
  int width,
  int height,
  ...
)

Description [src]

Create a one-band float image of Worley noise.

Use cell_size to set the size of the cells from which the image is constructed. The default is 256 x 256.

If width and height are multiples of cell_size, the image will tessellate.

::: tip “Optional arguments” * cell_size: gint, size of Worley cells

::: seealso vips_perlin(), vips_fractsurf(), vips_gaussnoise().

Parameters

out VipsImage
 

Output image.

 The argument will be set by the function.
 The called function takes ownership of the data, and is responsible for freeing it.
width int
 

Horizontal size.

height int
 

Vertical size.

... none
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.