用于在终端上显示图像的python库
teimp的Python项目详细描述
#泰姆比
[![PYPI版本](https://badge.fury.io/py/teimpy.svg)(https://badge.fury.io/py/teimpy)
[![麻省理工学院许可](https://img.shields.io/badge/license mit blue.svg)](https://raw.githubusercontent.com/amplify education/serverless domain manager/master/license)
[![构建状态](https://travis-ci.org/ar90n/teimpy.svg?(https://travis ci.org/ar90n/teimpy)
python在终端上显示图像的python库。
.array([1.0,0,0])
g=np.array([0,1.0,>b=np.array([0,0,0,1.0])
>def-get-u颜色(x,y):
>tmp=(y*(1.0-x)*r+(1.0-y)*x*g+(1.0-y)*(1.0-x)*b)
>return(255*tmp)
>b=np.astype(np.uint8)
>b=np.linspace(0,1,128)
>xss,ys=np.meshgrid(tictictictictics,tics)
>np.meshgrid=np.meshgrid。缓冲区=np.矢量化(_get_color,signature='),(->;(3))(xs,ys)
打印(获取抽屉(mode.iterm2_inline_image).draw(buffer))
````
![doit.py的结果](https://github.com/ar90n/teimpy/raw/docs/doit.png)
\feature
*调整图像大小以适应终端大小。
*使用iterm2内联图像绘制。
![使用iterm2内联图像绘制](https://github.com/ar90n/teimpy/raw/docs/inline_image.png)
*使用盲文字体绘制。
![布莱叶OFNTS绘图](https://github.com/ar90n/teimpy/raw/docs/braille.png)
*使用半块字体绘图。
![使用半块字体绘制](https://github.com/ar90n/teimpy/raw/docs/half懔u block.png)
[![PYPI版本](https://badge.fury.io/py/teimpy.svg)(https://badge.fury.io/py/teimpy)
[![麻省理工学院许可](https://img.shields.io/badge/license mit blue.svg)](https://raw.githubusercontent.com/amplify education/serverless domain manager/master/license)
[![构建状态](https://travis-ci.org/ar90n/teimpy.svg?(https://travis ci.org/ar90n/teimpy)
python在终端上显示图像的python库。
.array([1.0,0,0])
g=np.array([0,1.0,>b=np.array([0,0,0,1.0])
>def-get-u颜色(x,y):
>tmp=(y*(1.0-x)*r+(1.0-y)*x*g+(1.0-y)*(1.0-x)*b)
>return(255*tmp)
>b=np.astype(np.uint8)
>b=np.linspace(0,1,128)
>xss,ys=np.meshgrid(tictictictictics,tics)
>np.meshgrid=np.meshgrid。缓冲区=np.矢量化(_get_color,signature='),(->;(3))(xs,ys)
打印(获取抽屉(mode.iterm2_inline_image).draw(buffer))
````
![doit.py的结果](https://github.com/ar90n/teimpy/raw/docs/doit.png)
\feature
*调整图像大小以适应终端大小。
*使用iterm2内联图像绘制。
![使用iterm2内联图像绘制](https://github.com/ar90n/teimpy/raw/docs/inline_image.png)
*使用盲文字体绘制。
![布莱叶OFNTS绘图](https://github.com/ar90n/teimpy/raw/docs/braille.png)
*使用半块字体绘图。
![使用半块字体绘制](https://github.com/ar90n/teimpy/raw/docs/half懔u block.png)