pixeler:CLI图像渲染器

时间:2021-02-01 14:54:58
【文件属性】:
文件名称:pixeler:CLI图像渲染器
文件大小:9KB
文件格式:ZIP
更新时间:2021-02-01 14:54:58
cli php pixel-art CommandlineinterfacePHP 像素器 在CLI中使用UTF-8字符渲染图像。 安装 需要在与您的项目: $ composer require lastguest/pixeler 这还将在以下位置安装Pixeler工具: your_project_dir/vendor/bin/pixeler 它的工作原理与下面的示例完全相同。 例 创建一个文件pixel.php : <?php // Include autoloader include __DIR__. "/vendor/autoload.php" ; // Parse options from command line $ opts = array_merge ([ 'd' => 1 , // Dithering mode : 0 = DITHER_NONE, 1 = DITHER_ERROR 'f' => false , 'r' => 1.0 , // Resize factor 1.0 = 100% 'w' => 0.75 , // Dither treshold weight ], getopt ( "f:r
【文件预览】:
pixeler-master
----composer.json(640B)
----bin()
--------pixeler(731B)
----src()
--------Pixeler()
----LICENSE.md(1KB)
----.gitignore(31B)
----README.md(3KB)

网友评论