---
name: "squares"
section: "1"
platform: "linux"
package: "libvips-tools"
version: "7.20.7-1+b3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/sines"
---

# squares(1)

creates a spatial sine or square wave form

Part of [sines(1)](/sines/1.md).

## NAME

sines, squares - creates a spatial sine or square wave form

## SYNOPSIS

**sines image xsize ysize horfreq verfreq**

**squares image xsize ysize horfreq verfreq**

## DESCRIPTION

**sines** creates an one band unsigned char image of the a sine waveform in two dimensions. The sizes of the created image are xsize by ysize.  The number of horizontal and vertical spatial frequencies are determined by the variables horfreq and verfreq respectively.

**squares** creates an one band unsigned cahr image by thresholding a sine waveform.

## SEE ALSO

grey(1), im\_sines(3X), [squares(1)](/squares/1.md).

## COPYRIGHT

N. Dessipris

## AUTHOR

N. Dessipris - 27/02/1992
