GithubHelp home page GithubHelp logo

jdxyw / generativeart Goto Github PK

View Code? Open in Web Editor NEW
880.0 880.0 84.0 8.82 MB

Generative Art in Go

License: MIT License

Go 100.00%
creative-coding generative generative-art go golang perlin-noise

generativeart's People

Contributors

brittonhayes avatar jdxyw avatar refs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

generativeart's Issues

undefined: common.Plasma

I am trying to run the go files, using the command line:
go run example.go AND also: go build example.go

I recieve the following error:

command-line-arguments

.\example_dotline.go:18:19: undefined: common.Plasma

consider changing the module name to github.com/jdxyw/generativeart

sadly when go getting it it throws a tantrum:

~/code/refs/generativeart
โฏ go get github.com/jdxyw/generativeart
go: github.com/jdxyw/generativeart upgrade => v0.0.0-20210303093834-f33224c60df0
go get: github.com/jdxyw/[email protected]: parsing go.mod:
	module declares its path as: generativeart
	        but was required as: github.com/jdxyw/generativeart

I'd open a PR myself but it requires updating all import paths all over the place. I might just do that ๐Ÿค”

Canva.Options fields are not exported

We currently cannot use the Options struct for the SetOptions() method because its fields aren't exported.

Had to use the helpers function instead :

type OptionsOverride struct {
	Background  color.RGBA
	Foreground  color.RGBA
	LineColor   color.RGBA
	LineWidth   float64
	ColorSchema []color.RGBA
	NIters      int
	Alpha       int
}

func setCanvaOptions(c *generativeart.Canva, options OptionsOverride) {
	c.SetBackground(options.Background)
	c.SetForeground(options.Foreground)
	c.SetLineColor(options.LineColor)
	c.SetLineWidth(options.LineWidth)
	c.SetColorSchema(options.ColorSchema)
	c.SetIterations(options.NIters)
	c.SetAlpha(options.Alpha)
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.