goart

command module
v0.0.0-...-1fb56a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 1 Imported by: 0

README

goart
goart
Generate art on the command line.

This command-line utility, goart, began as a fork of the companion source code to the book, "Generative Art in Go.", which intended to introduce novice and experienced programmers to algorithmic art. It did just that for me, and I decided to convert the code into a command-line utility and being modifying the code to do even more.

$ goart --help
Generates art using a source image as the starting point.

        The resulting image can be further manipulated with flags to this
        command.

Usage:
  goart generate FILE [flags]

Flags:
  -A, --alpha-increase float               the step of transparency increase at each iteration (default 0.06)
  -H, --height int                         height of the generated image (default 2000)
  -h, --help                               help for generate
  -a, --initial-alpha float                beginning stroke transparency (default 0.1)
  -K, --keep-source-dimensions             generate a new image with the same dimensions as the source image (default true)
  -M, --max-edge int                       maximum stroke will be a n-edge polygon (4 is a square) (default 4)
  -m, --min-edge int                       minimum stroke will be a n-edge polygon (3 is a triangle) (default 3)
  -z, --random                             generates a new image using a random one pulled from source.unsplash.com
  -t, --stroke-inversion-threshold float   the minimum stroke size (default 0.05)
  -j, --stroke-jitter float                deviation of the colored stroke from its projected position in the original image (default 0.1)
  -r, --stroke-ratio float                 size of the initial stroke compared to that of the final result (default 0.75)
  -R, --stroke-reduction float             the initial stroke size gets minimized by this amount on each iteration (default 0.002)
  -T, --total-cycles int                   Copy any discovered k8s squashfs images from SRC to DEST (default 5000)
  -W, --width int                          width of the generated image (default 2000)

Global Flags:
      --config string   config file (default is $HOME/.goart.yaml)
      --viper           use Viper for configuration (default true)

Documentation

Overview

MIT License

Copyright (c) 2021 Jacob Salmela <me@jacobsalmela.com> Copyright (c) 2021 Preslav Rachev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis
MIT License Copyright (c) 2021 Jacob Salmela <me@jacobsalmela.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
MIT License Copyright (c) 2021 Jacob Salmela <me@jacobsalmela.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL