脑洞专区
地狱恶狼
这个作者很懒,什么都没留下…
展开
-
数学公式生成的美图
玩OpenGL无意间发现一张公式生成的图片,被惊艳到了。今早把代码翻译成了python。import PIL.Image as Ifrom math import sin, cosW, H, R = 500, 500, 10img = I.new('RGBA', (W, H), (255, 255, 255, 255))x = -Rwhile x < R: ...原创 2019-12-26 11:37:37 · 1036 阅读 · 0 评论 -
随机之美
python代码生成一颗独一无二的‘眼睛’----------------------------------------------------------------- #!/usr/bin/env python3 import numpy as np import matplotlib.pyplot as mp im...原创 2018-04-12 16:04:04 · 249 阅读 · 0 评论