We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We currently cannot use the Options struct for the SetOptions() method because its fields aren't exported.
Options
SetOptions()
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) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We currently cannot use the
Options
struct for theSetOptions()
method because its fields aren't exported.Had to use the helpers function instead :
The text was updated successfully, but these errors were encountered: