# 使用 Homebrew, apt, MacPorts 安装 triangle

查看 triangle 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install triangle
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install triangle
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:triangle
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/triangle>
- **版本:** 2.0.0
- **来源摘要:** Convert images to computer generated art using Delaunay triangulation
- **主页:** <https://github.com/esimov/triangle>
- **仓库:** <https://github.com/esimov/triangle>
- **上游文档:** <https://github.com/esimov/triangle#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/esimov/triangle/archive/refs/tags/v2.0.0.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- triangle (cli)
- triangle (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.0.0
- 本地数据: OK
- 上游仓库: https://github.com/esimov/triangle
- 检测到的最新版本: v2.0.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

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


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **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

## 其他软件包管理器记录

- 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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [gd](https://www.automicvault.com/zh-hans/pkg/brew/gd/) - Shares av.db curated category or tags: cli, graphics, image-processing, media.
- [graphicsmagick](https://www.automicvault.com/zh-hans/pkg/brew/graphicsmagick/) - Shares av.db curated category or tags: cli, graphics, image-processing, media.
- [libsail](https://www.automicvault.com/zh-hans/pkg/brew/libsail/) - Shares av.db curated category or tags: cli, graphics, image-processing, media.
- [babl](https://www.automicvault.com/zh-hans/pkg/brew/babl/) - Shares av.db curated category or tags: cli, graphics, image-processing, media.
- [caire](https://www.automicvault.com/zh-hans/pkg/brew/caire/) - Shares av.db curated category or tags: cli, image-processing, media.
- [camellia](https://www.automicvault.com/zh-hans/pkg/brew/camellia/) - Shares av.db curated category or tags: cli, image-processing, media.
- [epsilon](https://www.automicvault.com/zh-hans/pkg/brew/epsilon/) - Shares av.db curated category or tags: cli, image-processing, media.
- [exact-image](https://www.automicvault.com/zh-hans/pkg/brew/exact-image/) - Shares av.db curated category or tags: cli, graphics, image-processing, media.
- [faceprints](https://www.automicvault.com/zh-hans/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/zh-hans/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/zh-hans/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)


## 来源

- 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
