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