{"id":16547644,"url":"https://github.com/sambecker/ase-palette","last_synced_at":"2025-10-28T16:31:44.490Z","repository":{"id":59150740,"uuid":"174921956","full_name":"sambecker/ase-palette","owner":"sambecker","description":"Create and manage Adobe ASE palettes","archived":false,"fork":false,"pushed_at":"2022-01-16T00:51:43.000Z","size":61,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-08T18:04:56.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/ase-palette","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sambecker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-11T03:51:33.000Z","updated_at":"2022-01-16T00:51:46.000Z","dependencies_parsed_at":"2022-09-13T11:00:29.505Z","dependency_job_id":null,"html_url":"https://github.com/sambecker/ase-palette","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambecker%2Fase-palette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambecker%2Fase-palette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambecker%2Fase-palette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambecker%2Fase-palette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sambecker","download_url":"https://codeload.github.com/sambecker/ase-palette/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219859164,"owners_count":16556037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T19:22:28.430Z","updated_at":"2025-10-28T16:31:39.168Z","avatar_url":"https://github.com/sambecker.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎨 ASEPalette\n\n[\u003cimg src=\"https://img.shields.io/gem/v/ase-palette.svg?color=g\" /\u003e](https://rubygems.org/gems/ase-palette)\n[\u003cimg src=\"https://img.shields.io/gem/dt/ase-palette.svg?color=g\" /\u003e](https://rubygems.org/gems/ase-palette)\n\nCreate and manage Adobe ASE color palettes in Ruby.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'ase-palette'\n```\n\n## Usage\n\n### 🚀 Load\n\n```ruby\nrequire 'ase-palette'\n```\n\n### 📝 Write\n\n```ruby\n# Create a palette\npalette = ASEPalette.new\n\n# Add a color\npalette.add_color ASEPalette::Color::RGB.new \"Red\", 255, 0, 0\n\n# Add a color to a group\npalette.add_color ASEPalette::Color::CMYK.new \"Yellow\", 100, 0, 0, 0, group_name: \"My Group\"\n```\n\n### 📖 Read\n\n```ruby\n# Access top-level colors\npalette.colors.each do |color|\n  puts \"Found color #{color.name}\"\nend\n\n# Access colors from groups\npalette.groups.each do |group|\n  puts \"Found group #{group.name}\"\n  group.colors.each do |color|\n    puts \"- #{color.name}\"\n  end\nend\n\n# Access all colors, including those from groups, as a flat array\npalette.colors(include_from_groups: true).each do |color|\n  puts \"Found color #{color.name}, which may or may not belong to a group\"\nend\n```\n\n### 🖋 Edit\n\n```ruby\n# Remove a color, including those from groups\npalette.remove_color_with_name \"Red\"\n\n# Remove a group and all of the colors in it\npalette.remove_group_with_name \"Group Name\" \n```\n\n### ⬆️ Export\n\n```ruby\n# Store file\nIO.binwrite('palette.ase', palette.to_binary)\n\n# Send file (from Rails controller)\nrespond_to do |format|\n  format.ase {\n    send_data palette.to_binary, type: 'application/octet-stream', filename: 'palette.ase' \n  }\nend\n```\n\n### ⬇️ Import\n\n```ruby\n# Open palette from file\npalette = ASEPalette.open 'path/to/palette.ase'\n\n# Access palette colors\nputs palette\n# ASEPalette 2.0\n# --------------\n# \n# Red, RGB: 255/0/0, :global\n#\n# Group 1:\n#   Violet, RGB: 90/0/255, :global\n#   Blue, RGB: 0/0/255, :global\n#   Green, RGB: 50/255/50, :global\n#\n# Group 2\n#   Orange CMYK, CMYK: 0/80/100/0, :global\n#   Yellow CMYK, CMYK: 0/20/100/0, :global\n# \n# Group 3\n#   PANTONE Yellow C, LAB: 89/-1/111, :spot\n#   PANTONE Orange 021 C, LAB: 61/66/85, :spot\n#\n# --------------\n# 7 colors, 2 groups\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/sambecker/ase-palette.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambecker%2Fase-palette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsambecker%2Fase-palette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambecker%2Fase-palette/lists"}