color

作者: 匿隱 | 来源:发表于2019-02-14 11:45 被阅读0次

from random import randint

class Color:
    white = (255, 255, 255)
    black = (0, 0, 0)
    red = (255, 0, 0)
    green = (0, 255, 255)
    blue = (0, 0, 255)
    yellow = (255, 255, 0)
    gray = (155, 155, 155)

    @staticmethod
    def random_color():
        return randint(0, 255), randint(0, 255), randint(0, 255)

相关文章

网友评论

      本文标题:color

      本文链接:https://www.haomeiwen.com/subject/kwrljqtx.html