---
name: "sierpinski"
section: "1"
platform: "linux"
package: "xscreensaver"
version: "3.34-3"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/sierpinski"
---

# sierpinski(1)

draws Sierpinski triangle fractals

## NAME

sierpinski - draws Sierpinski triangle fractals

## SYNOPSIS

**sierpinski** \[-display *host:display.screen*\] \[-foreground *color*\] \[-background *color*\] \[-window\] \[-root\] \[-mono\] \[-install\] \[-visual *visual*\] \[-ncolors *integer*\] \[-delay *microseconds*\] \[-cycles *integer*\] \[-count *integer*\]

## DESCRIPTION

The *sierpinski* program draws Sierpinski triangle fractals.

## OPTIONS

*sierpinski* accepts the following options:

- **-window**

  Draw on a newly-created window.  This is the default.

- **-root**

  Draw on the root window.

- **-mono**

  If on a color display, pretend we're on a monochrome display.

- **-install**

  Install a private colormap for the window.

- **-visual *visual***

  Specify which visual to use.  Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual.

- **-ncolors *integer***

  How many colors should be used (if possible).  Default 64. The colors are chosen randomly.

- **-cycles *integer***

  - **-count *integer***

  ## ENVIRONMENT

- **DISPLAY**

  to get the default host and display number.

- **XENVIRONMENT**

  to get the name of a resource file that overrides the global resources stored in the RESOURCE\_MANAGER property.

## SEE ALSO

**X**(1), [**xscreensaver**(1)](/xscreensaver/1.md), [**xlock**(1)](/xlock/1.md)

## COPYRIGHT

Copyright © 1996 by Desmond Daignault.

Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation.

## AUTHOR

Desmond Daignault \<tekdd@dtol.datatimes.com\>, 05-Sep-96.  (Original  xlock version was called tri.c.)

Ability to run standalone or with *xscreensaver* added by  Jamie Zawinski \<jwz@jwz.org\>, 10-May-97.  (Renamed to sierpinski.)
