Shapes/README.md

80 строки
3.1 KiB
Markdown

<h1 align="center">
<img src="https://raw.githubusercontent.com/SixLabors/Branding/master/icons/shapes/sixlabors.shapes.512.png" alt="SixLabors.Shapes" width="256"/>
<br/>
SixLabors.Shapes
</h1>
<div align="center">
[![Build status](https://ci.appveyor.com/api/projects/status/3tqmmb43c7trq43e/branch/master?svg=true)](https://ci.appveyor.com/project/six-labors/shapes/branch/master)
[![codecov](https://codecov.io/gh/SixLabors/Shapes/branch/master/graph/badge.svg)](https://codecov.io/gh/SixLabors/Shapes)
[![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/SixLabors/Shapes/master/LICENSE.txt)
[![Join the chat at https://gitter.im/SixLabors/Shapes](https://badges.gitter.im/SixLabors/Shapes.svg)](https://gitter.im/SixLabors/Shapes?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![GitHub issues](https://img.shields.io/github/issues/SixLabors/Shapes.svg)](https://github.com/SixLabors/Shapes/issues)
[![GitHub stars](https://img.shields.io/github/stars/SixLabors/Shapes.svg)](https://github.com/SixLabors/Shapes/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/SixLabors/Shapes.svg)](https://github.com/SixLabors/Shapes/network)
</div>
**SixLabors.Shapes** is a new cross-platform 2D polygon manipulation API.
### Installation
**Pre-release downloads**
At present the code is pre-release we have initial pre-releases availible on [nuget](https://www.nuget.org/packages/SixLabors.Shapes/).
We also have a [MyGet package repository](https://www.myget.org/gallery/SixLabors) - for bleeding-edge / development NuGet releases.
### Manual build
If you prefer, you can compile SixLabors.Shapes yourself (please do and help!), you'll need:
- [Visual Studio 2017](https://www.visualstudio.com/en-us/news/releasenotes/vs2017-relnotes)
- The [.NET Core 1.0 SDK Installer](https://www.microsoft.com/net/core#windows) - Non VSCode link.
To clone it locally click the "Clone in Windows" button above or run the following git commands.
```bash
git clone https://github.com/SixLabors/Shapes.git
```
### Features
- Point in Polygon
- Line Intersections
- Complex Polygons
- Simple polygon clipping
- Regular Polygons (triangles, squares, pentagons etc, any number of sides)
- Ellipses (and therfore circles)
- Shape Builder api - for creating shapes declaratively
- Polygons
- With Linear line segments
- With Beziear curve line segments
- Mixture of both Linear & bezier segments
- Paths
- With Linear line segments
- With Bezier curve line segments
- Mixture of both Linear & bezier segments
### How can you help?
Please... Spread the word, contribute algorithms, submit performance improvements, unit tests.
### Projects using SixLabors.Shapes
* [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) - cross platform, fully managed, image manipulation and drawing library.
### The SixLabors.Shapes Team
Lead
- [Scott Williams](https://github.com/tocsoft)
Core Team
- [Dirk Lemstra](https://github.com/dlemstra)
- [Anton Firsov](https://github.com/antonfirsov)
- [James Jackson-South](https://github.com/jimbobsquarepants)