Merge tag '1.0.0' into develop
initial release
This commit is contained in:
commit
75fc7c0e89
5 changed files with 16 additions and 34 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,9 +1,7 @@
|
||||||
*.png
|
*.png
|
||||||
*.json
|
|
||||||
*.svg
|
*.svg
|
||||||
!pool/**/*.svg
|
!pool/**/*.svg
|
||||||
!pool/**/*.png
|
!images/**/*.png
|
||||||
!pool/**/*.json
|
|
||||||
|
|
||||||
.idea
|
.idea
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,9 @@ version = "1.0.0"
|
||||||
authors = ["Ingolf Wagner <contact@ingolf-wagner.de>"]
|
authors = ["Ingolf Wagner <contact@ingolf-wagner.de>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
description = "Convenience library to use geo polygons to create art."
|
description = "Convenience library to use geo to create art."
|
||||||
documentation = "https://github.com/mrVanDalo/polygon-art"
|
documentation = "https://github.com/mrVanDalo/polygon-art"
|
||||||
homepage = "https://github.com/mrVanDalo/polygon-art"
|
homepage = "https://github.com/mrVanDalo/polygon-art"
|
||||||
repository = "https://github.com/mrVanDalo/polygon-art"
|
repository = "https://github.com/mrVanDalo/polygon-art"
|
||||||
|
|
16
README.md
16
README.md
|
@ -1,12 +1,22 @@
|
||||||
Convenience library to create art using [geo](https://georust.org/)
|
Convenience library to create art using [geo](https://georust.org/).
|
||||||
polygons.
|
|
||||||
|
|
||||||
* Creates CLI interface (including random seed management)
|
* Creates CLI interface (including random seed management)
|
||||||
* renders SVGs and PNG
|
* renders SVGs and PNG
|
||||||
* comes with helper functions, to make live more convenient.
|
* comes with helper functions and extensions, to make live more convenient.
|
||||||
* load SVGs
|
* load SVGs
|
||||||
* scaling
|
* scaling
|
||||||
|
|
||||||
|
# Asteroids
|
||||||
|
|
||||||
|
asteroids is an example binary which renders an
|
||||||
|
image inspired by the
|
||||||
|
[asteroids game from the 1979](https://de.wikipedia.org/wiki/Asteroids).
|
||||||
|
|
||||||
|
![image](./images/asteroids.png)
|
||||||
|
|
||||||
|
run `asteroids --help` to get information.
|
||||||
|
All binaries created by polygon art have the same
|
||||||
|
command line interface.
|
||||||
|
|
||||||
# How to run examples
|
# How to run examples
|
||||||
|
|
||||||
|
|
27
default.nix
27
default.nix
|
@ -1,27 +0,0 @@
|
||||||
{ rustPlatform, fetchgit, stdenv, cairo, ... }:
|
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
|
||||||
name = "image-geneartor-${version}";
|
|
||||||
version = "3.0.0";
|
|
||||||
# src = ./.;
|
|
||||||
src = fetchgit{
|
|
||||||
url = "https://github.com/mrVanDalo/image-generator";
|
|
||||||
rev = "f8c1bf958aeea1808df6baea62eeb2949aa5fe65";
|
|
||||||
sha256 = "1swa2i57sdag3zapzx3m9mdarci0xfjczr611320zampw505ai09";
|
|
||||||
};
|
|
||||||
|
|
||||||
cargoSha256 = "07pwds279qc54g5fza805ah2m8jhrdzng7vb1bi24a9ra9ci8s29";
|
|
||||||
verifyCargoDeps = true;
|
|
||||||
|
|
||||||
buildInputs = [ cairo ];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description =
|
|
||||||
"An image generator unsing entropy and a JSON as configuration.";
|
|
||||||
homepage = "https://github.com/mrVanDalo/image-generator";
|
|
||||||
license = licenses.gplv3;
|
|
||||||
maintainers = [ maintainers.mrVanDalo ];
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
BIN
images/asteroids.png
Normal file
BIN
images/asteroids.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
Loading…
Reference in a new issue