Random colour values in python
To create random values in python, type:
1 2 |
import random r = (float(random.randint( 20, 40)))/100 |
(randint returns an integer between (x, y). float invokes a floating-point number.)
ZBlur – Focal Plane Setup Convert rgb to hex colour in python