Sha256: 665731dee54e19444e72f7b582635ad5288c10870f358dbfd43e7d6f9277d187
Contents?: true
Size: 979 Bytes
Versions: 4
Compression:
Stored size: 979 Bytes
Contents
# ASE.rb A general purpose library for reading and writing Adobe Swatch Exchange files in Ruby. ASE files can be used across the entire Adobe Creative Suite (Photoshop, Illustrator, etc). ## Installation Add this line to your application's Gemfile: gem 'ase' And then execute: $ bundle Or install it yourself as: $ gem install ase ## Usage **Writing** ``` ruby doc = ASE.new palette = ASE::Palette.new('My Colors') palette.add 'Black', ASE::Color.new(0, 0, 0) palette.add 'Red', ASE::Color.from_hex('#ff0000') doc << palette doc.to_file('path/to/file.ase') ``` **Reading** ``` ruby doc = ASE.from_file('path/to/file.ase') puts doc['My Colors']['Red'].to_rgb #=> [255, 0, 0] puts doc['My Colors'].size #=> 2 ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ase-1.0.3 | README.md |
ase-1.0.2 | README.md |
ase-1.0.1 | README.md |
ase-1.0.0 | README.md |