Geometrix is a web API that generates geometric images based on user-defined parameters. It uses a combination of mirror power, cell group length, cell width pixel, seed, and color themes to create unique and visually appealing geometric patterns.
- Generate geometric images with customizable parameters
- Save generated images as PNG files
- Retrieve saved images
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- .NET 8.0 or later
- A suitable IDE such as JetBrains Rider or Visual Studio
- Clone the repository
git clone https://github.com/phmatray/Geometrix.git
- Navigate to the project directory
cd Geometrix
- Restore the packages
dotnet restore
- Build the project
dotnet build
- Run the project
dotnet run --project Geometrix.WebApi/Geometrix.WebApi.csproj
To generate an image, make a POST request to /api/GenerateImage
with the following parameters:
mirrorPowerHorizontal
: (integer) The mirror power in the horizontal direction.mirrorPowerVertical
: (integer) The mirror power in the vertical direction.cellGroupLength
: (integer) The length of the cell group.cellWidthPixel
: (integer) The width of the cell in pixels.includeEmptyAndFill
: (boolean) Whether to include empty and fill cells.seed
: (integer) The seed for the random number generator.backgroundColor
: (string) The background color in hexadecimal format.foregroundColor
: (string) The foreground color in hexadecimal format.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE.md file for details