Answers for "random color generator python"

5

generate a color python

color = lambda : [random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)]
Posted by: Guest on October-14-2020
0

matplotlib random color

import random

# note that matplotlib requires 2d array for rbg colors
rgb = [[random.random(), random.random(), random.random()]]
plt.scatter(x, y, c=rgb)
Posted by: Guest on May-30-2021

Code answers related to "random color generator python"

Python Answers by Framework

Browse Popular Code Answers by Language