cutterkom / generativeart

Create Generative Art with R
GNU General Public License v3.0
916 stars 163 forks source link

Provide an example using seed = 1821 #7

Closed samuel-data-lab closed 3 years ago

samuel-data-lab commented 4 years ago

Could you please share the code to generate the art using the seed 1821?

cutterkom commented 4 years ago

Hey,

the example is provided in the Readme.

In the table at the bottom I provide the formulas for x and y for seed 1821. When you plug them into a variable you can run the function, see https://github.com/cutterkom/generativeart#examples

samuel-data-lab commented 4 years ago

Thanks. My goal is to re-generate the same image using the seed 1821 to learn more about the generate_img() function and the package in general. I get how to specify the formula X & Y. But, how to set seed to generate one single image with the above seed? Thanks again

cutterkom commented 3 years ago

I updated the package, because due to your issue I realized that the regenerate_img() was broken.

So, your have to do two things:

  1. create a csv logfile just like at the bottom of the "Examples" section: https://github.com/cutterkom/generativeart#examples and reference it with LOGFILE_PATH
  2. then call regenerate_img(seed=1821, polar=TRUE). This will pull the formula from the logfile and recreate the image
samuel-data-lab commented 3 years ago

Thanks. That worked beautifully!

data2700 commented 3 years ago

Is it possible to add the options for color to regenerate_img function? When I use it with color parameters included I get :
unused argument (color = "red", background color="black")