Add nicer coloring.
This commit is contained in:
parent
565ded39fc
commit
11d306f362
16 changed files with 14 additions and 10 deletions
|
@ -19,9 +19,12 @@ if __name__ == "__main__":
|
|||
|
||||
height = float(shape_params["height"])
|
||||
radius = float(shape_params["radius"])
|
||||
color = [random.random(),
|
||||
random.random(),
|
||||
random.random()]
|
||||
|
||||
colors = [(0.1, 0.1, 0.1),
|
||||
(0.68, 0.68, 0.68),
|
||||
(0.033, 0.065, 0.376),
|
||||
(0.019, 0.202, 0.032)]
|
||||
color = random.choice(colors)
|
||||
product_gen.generate_product.generate(shape, height, radius, color, output)
|
||||
|
||||
shape_parameters = shape_params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue