Set up proportions of each colour #159
-
Hi Koen, I'm trying your package to generate some cover pictures for our school newsletter and I wonder if it's possible at all to set the proportion of each colour in the artwork? We did a survey of everyone's favourite colour and would like to turn these statistics into some art :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @yiqi171717, Sounds like a cool idea! I think a good attempt would be to first create a vector of colors that has the appropriate proportions in it, like is shown below. In the vector
Next, you can use this color vector in one of the functions. For example:
Hope this helps! :) |
Beta Was this translation helpful? Give feedback.
-
Issue11_cover_watercolour.pdf |
Beta Was this translation helpful? Give feedback.
Hi @yiqi171717,
Sounds like a cool idea! I think a good attempt would be to first create a vector of colors that has the appropriate proportions in it, like is shown below. In the vector
colors
, the colorblue
occurs (approximately) 30%,red
occurs 20%, andyellow
occurs 50% of the times.Next, you can use this color vector in one of the functions. For example:
Hope this helps! :)