首页 > 其他 > 详细

Tinyrender-Lesson 0 画一个点

时间:2020-06-23 21:17:22      阅读:70      评论:0      收藏:0      [点我收藏+]

Tinyrender-Lesson 0 画一个点

原文链接: https://github.com/ssloy/tinyrenderer/wiki/Lesson-0-getting-started

import matplotlib.pyplot as plt
from PIL import Image
def draw_point(image, position=(0,0), color=(255,255,255)):
    image.putpixel(position, color)
    return image
image = Image.new("RGB",(100, 100),(0,0,0))
draw_point(image, (52,41), (255,0,0))
plt.imshow(image)

技术分享图片

Tinyrender-Lesson 0 画一个点

原文:https://www.cnblogs.com/grass-and-moon/p/13184244.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!