def _next_frame(self):
sources = np.random.randint(0, 6, len(self.my_pixels))
colors = np.array([RED, BLUE, GREEN, BLACK, BLACK, BLACK])
for i in range(3):
c = np.choose(sources, colors[:, i])
self.my_pixels[:, i] = c
color_fade.py 文件源码
python
阅读 31
收藏 0
点赞 0
评论 0
评论列表
文章目录