siddarthpushparaj/my-own-use

为Adobe产品生成ASE色卡文件。

dev-master 2019-03-11 11:59 UTC

This package is auto-updated.

Last update: 2024-09-04 21:52:58 UTC


README

程序化生成Adobe .ase文件,用于Adobe应用套件。

需求

以下软件是运行所需的必需品

示例

use Ase\Color\Hex;
use Ase\Generator;
use Ase\Palette\Palette;

$ase = new Generator(array(
	new Palette('I got the blues', array(
		new Hex('One',   '0033ff'),
		new Hex('Two',   '#03c'),
		new Hex('Three', '#0066cc'),
	)),
));

file_put_contents('palette.ase', $ase->makePalette());

安装

根据您的需求,安装Adobe Swatch Exchange Generator的方式有几种

通过Composer捆绑

安装

composer require skyzyx/adobe-swatch-exchange

--- 以下内容无效 / * 在您的 composer.json 文件中添加Adobe Swatch Exchange Generator作为 Composer 依赖项

{
	"require": {
		"skyzyx/adobe-swatch-encoder": ">=1.0"
	}
}
```*/

### Install source from GitHub
To install the source code for Adobe Swatch Exchange Generator:

```sh
git clone git://github.com/skyzyx/adobe-swatch-encoder.git
cd adobe-swatch-encoder
wget --quiet http://getcomposer.org/composer.phar
php composer.phar install -o

从zip/tarball安装源代码

或者,您可以获取tarballzipball

curl https://github.com/skyzyx/adobe-swatch-encoder/tarball/master | tar xzv
wget https://github.com/skyzyx/adobe-swatch-encoder/tarball/master -O - | tar xzv

使用类加载器

如果您正在使用类加载器(例如,Symfony Class Loader)进行PSR-0风格的类加载

$loader->registerNamespace('Ase', 'path/to/vendor/Ase/src');

贡献

要查看现有贡献者的列表,请在终端中运行以下命令

git shortlog -sne --no-merges

如何?

以下是贡献的过程

  1. Fork Adobe Swatch Exchange Generator到您的GitHub账户。
  2. 将GitHub上的副本克隆到您的本地工作区。
  3. 编写代码,修复错误,并添加测试,覆盖率100%。
  4. 将更改提交到您的本地工作区并将它们推送到GitHub副本。
  5. 提交一个GitHub pull request,并描述更改的内容。
  6. 贡献将被审查。评论中可能会有一些讨论。
  7. 如果一切顺利,您的pull request将被接受,您的更改将被合并。
  8. 您将因运行终端中的git shortlog而“名噪一时”。 :)

作者,版权与许可

另请参阅参与此项目的贡献者列表。

根据MIT许可协议许可使用。