creatingsymmetry

package module
v0.0.0-...-78d9b97 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 7 Imported by: 1

README

Mathematical Abstract Art Generator

This program takes images and transforms them into abstract art pieces.

cp data/formula.yml.example data/formula.yml
make run

Will turn

Image with 7 horizontal stripes creating the rainbow with white on top and black on the bottom. Rainbow Stripe

into:

Transformed rainbow stripe image into rosette with 4 rotational symmetry, creating purple and green petals on a blue background

How does it work?

Image + Transformation = New Image

  1. You supply a source image
  2. The transformation applies a lot of mathematics to figure out which pixel of the source should be used
  3. The output image uses the pixel as a color.

The transformation offers the most customization.

Next topics

  • How to install
  • Command Line Options
  • Transformations

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileTransformer

type FileTransformer struct{}

func (*FileTransformer) ApplyFormulaToTransformImage

func (f *FileTransformer) ApplyFormulaToTransformImage(inputImageDataByteStream, formulaDataByteStream, outputSettingsDataByteStream io.Reader, output io.Writer) error

type TransformerStrategy

type TransformerStrategy interface {
	ApplyFormulaToTransformImage(inputImageDataByteStream, formulaDataByteStream, outputSettingsDataByteStream io.Reader, output io.Writer) error
}

TransformerStrategy shapes the expected messages and the expected responses when running the rules.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
entities
imageoutput/imageoutputfakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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