# Install triangle with Homebrew, apt, MacPorts

Convert images to computer generated art using Delaunay triangulation. Version 2.0.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:triangle
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install triangle
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install triangle
```

  Evidence: MacPorts ports tree: science/triangle/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install libtriangle-1.6
```

  Evidence: Debian stable package indexes: libtriangle-1.6 from https://deb.debian.org/debian/dists/stable/non-free/binary-amd64/Packages.xz

## Package facts

- **Package key:** brew:triangle
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/triangle>
- **Version:** 2.0.0
- **Source summary:** Convert images to computer generated art using Delaunay triangulation
- **Homepage:** <https://github.com/esimov/triangle>
- **Repository:** <https://github.com/esimov/triangle>
- **Upstream docs:** <https://github.com/esimov/triangle#readme>
- **License:** MIT
- **Source archive:** <https://github.com/esimov/triangle/archive/refs/tags/v2.0.0.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- triangle (cli)
- triangle (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.0.0
- Local data: ok
- Upstream repository: https://github.com/esimov/triangle
- Upstream latest detected: v2.0.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

Triangle is a Go command-line and library project for converting raster images into low-poly artwork through Delaunay triangulation. It occupies the package-manager niche of creative image-processing CLIs: small enough to script, but visual enough to be useful for generative-art workflows.

### Project history

The official README presents Triangle as a tool that takes a source image and turns it into an abstract image made of triangular tiles. Its documented process blurs the image, converts it to grayscale, extracts edges with a Sobel filter, adjusts the data with convolution, and then applies Delaunay triangulation.

The project is distributed as both a Go module/API and a command-line tool. Its README copyright dates the project to 2018, while the GitHub releases page shows later 1.x and 2.x releases, including v2.0.0 with CLI flag updates.

### Adoption history

Triangle found adoption among users who want an installable low-poly generator rather than a GUI-only art tool. Its README explicitly documents Homebrew installation, release binaries, Go installation, recursive directory processing, concurrent processing, URL inputs, SVG output, and stdin/stdout pipeline usage.

The GitHub repository page shows broad open-source interest for a niche creative tool, with thousands of stars and packaged release assets. That makes it a recognizable package for users browsing Homebrew media/image-processing formulae.

### How it is used

Typical command-line usage passes an input image and output path, then adjusts parameters such as blur radius, point rate, edge factor, maximum points, grayscale mode, wireframe mode, stroke width, and SVG output. The tool can process single images, recurse over directories, or read and write through pipes.

For developers, the README documents an API where callers configure a `triangle.Processor`, decode an image, call `Draw`, and encode the output, which lets the same triangulation engine be embedded in other Go programs.

### Why package nerds care

Triangle is significant in package-manager culture because it is a visually demonstrable CLI: `brew install triangle` gives a user a scriptable image transformer with reproducible parameters and no heavyweight creative-suite dependency.

It also illustrates the overlap between Go modules, release binaries, and Homebrew formulae for media tools. Package nerds care about that mix because it makes batch image effects portable across local scripts, CI asset generation, and terminal-first creative workflows.

### Timeline

- 2018: README license notice dates the MIT-licensed project to 2018.
- Current README: Homebrew, Go install, release binaries, SVG output, directory concurrency, URL input, and pipe support are documented.
- v1.3.0: Release notes describe a rewritten API, better visual output, advanced customization options, and extended CLI parameters.
- v2.0.0: GitHub release notes describe a major release with CLI flag updates.

### Related projects

- Related technologies include Delaunay triangulation, Sobel edge detection, Go image-processing libraries, SVG output workflows, and command-line generative-art tools.

### Sources

- <https://github.com/esimov/triangle#readme>
- <https://github.com/esimov/triangle/releases>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** triangle
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - libtriangle-1.6 - 1.6-6: normalized package name match | Debian stable package indexes: libtriangle-1.6 from https://deb.debian.org/debian/dists/stable/non-free/binary-amd64/Packages.xz | High-quality 2-D mesh generator -- shared libraries | https://www.cs.cmu.edu/~quake/triangle.html
- Debian apt - libtriangle-dev - 1.6-6: normalized package name match | Debian stable package indexes: libtriangle-dev from https://deb.debian.org/debian/dists/stable/non-free/binary-amd64/Packages.xz | High-quality 2-D mesh generator -- development files | https://www.cs.cmu.edu/~quake/triangle.html
- Debian apt - triangle-bin - 1.6-6: normalized package name match | Debian stable package indexes: triangle-bin from https://deb.debian.org/debian/dists/stable/non-free/binary-amd64/Packages.xz | High-quality 2-D mesh generator -- binary programs | https://www.cs.cmu.edu/~quake/triangle.html
- Ubuntu apt - libtriangle-1.6 - 1.6-6: normalized package name match | Ubuntu 24.04 LTS package indexes: libtriangle-1.6 from https://archive.ubuntu.com/ubuntu/dists/noble/multiverse/binary-amd64/Packages.gz | High-quality 2-D mesh generator -- shared libraries | https://www.cs.cmu.edu/~quake/triangle.html
- Ubuntu apt - libtriangle-dev - 1.6-6: normalized package name match | Ubuntu 24.04 LTS package indexes: libtriangle-dev from https://archive.ubuntu.com/ubuntu/dists/noble/multiverse/binary-amd64/Packages.gz | High-quality 2-D mesh generator -- development files | https://www.cs.cmu.edu/~quake/triangle.html
- Ubuntu apt - triangle-bin - 1.6-6: normalized package name match | Ubuntu 24.04 LTS package indexes: triangle-bin from https://archive.ubuntu.com/ubuntu/dists/noble/multiverse/binary-amd64/Packages.gz | High-quality 2-D mesh generator -- binary programs | https://www.cs.cmu.edu/~quake/triangle.html
- MacPorts - triangle: normalized package name match | MacPorts ports tree: science/triangle/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [gd](https://www.automicvault.com/pkg/brew/gd/) - Shares av.db curated category or tags: cli, graphics, image-processing, media.
- [graphicsmagick](https://www.automicvault.com/pkg/brew/graphicsmagick/) - Shares av.db curated category or tags: cli, graphics, image-processing, media.
- [libsail](https://www.automicvault.com/pkg/brew/libsail/) - Shares av.db curated category or tags: cli, graphics, image-processing, media.
- [babl](https://www.automicvault.com/pkg/brew/babl/) - Shares av.db curated category or tags: cli, graphics, image-processing, media.
- [caire](https://www.automicvault.com/pkg/brew/caire/) - Shares av.db curated category or tags: cli, image-processing, media.
- [camellia](https://www.automicvault.com/pkg/brew/camellia/) - Shares av.db curated category or tags: cli, image-processing, media.
- [epsilon](https://www.automicvault.com/pkg/brew/epsilon/) - Shares av.db curated category or tags: cli, image-processing, media.
- [exact-image](https://www.automicvault.com/pkg/brew/exact-image/) - Shares av.db curated category or tags: cli, graphics, image-processing, media.
- [faceprints](https://www.automicvault.com/pkg/brew/faceprints/) - Both packages work with overlapping file formats or content types. Shared terms: cli, computer, image, image-processing, images.
- [pwa-asset-generator](https://www.automicvault.com/pkg/npm/pwa-asset-generator/) - Both packages work with overlapping file formats or content types. Shared terms: cli, generated, graphics, image, image-processing.
- [glyph](https://www.automicvault.com/pkg/brew/glyph/) - Both packages work with overlapping file formats or content types. Shared terms: art, cli, image, image-processing, images.

## Combined YAML source

View the package source record on GitHub. [combined/triangle.yml](https://github.com/automic-vault/db/blob/main/combined/triangle.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
