{"id":16088593,"url":"https://github.com/avp/spectra","last_synced_at":"2025-12-12T04:06:11.662Z","repository":{"id":58227163,"uuid":"12075030","full_name":"avp/spectra","owner":"avp","description":"A Javascript color library. Quickly manipulate and convert colors.","archived":false,"fork":false,"pushed_at":"2017-11-29T19:01:43.000Z","size":566,"stargazers_count":237,"open_issues_count":6,"forks_count":14,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-29T20:07:02.282Z","etag":null,"topics":["color","convert-colors","javascript","javascript-library","nodejs","spectra"],"latest_commit_sha":null,"homepage":"avp.github.io/spectra","language":"JavaScript","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/avp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-13T06:37:12.000Z","updated_at":"2024-04-17T20:41:49.000Z","dependencies_parsed_at":"2022-08-31T05:41:37.953Z","dependency_job_id":null,"html_url":"https://github.com/avp/spectra","commit_stats":null,"previous_names":["aakpat6/spectra"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avp%2Fspectra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avp%2Fspectra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avp%2Fspectra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avp%2Fspectra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avp","download_url":"https://codeload.github.com/avp/spectra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399885,"owners_count":20932880,"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":["color","convert-colors","javascript","javascript-library","nodejs","spectra"],"created_at":"2024-10-09T13:37:04.960Z","updated_at":"2025-12-12T04:06:11.655Z","avatar_url":"https://github.com/avp.png","language":"JavaScript","readme":"Spectra\n=======\n[![Build Status](http://img.shields.io/travis/avp/spectra.svg?style=flat)](https://travis-ci.org/avp/spectra)\n[![Coverage Status](http://img.shields.io/coveralls/avp/spectra.svg?style=flat)](https://coveralls.io/r/avp/spectra?branch=master)\n[![npm Version](http://img.shields.io/npm/v/spectra.svg?style=flat)](http://npmjs.org/package/spectra)\n\n\nA small Javascript library for quickly manipulating and converting colors.\n\nExample\n-------\n\nSpectra can be wrapped around many different types of objects to create a Spectra color that can be manipulated.\n\n```javascript\nvar color = Spectra({r: 255, g: 25, b: 75});\ncolor.red() // 255\n```\n\nMotivation\n----------\n\nThe project was created to have a highly functional and lightweight way to deal with colors using Javascript, without any dependencies.\n\nInstallation\n------------\n\nSimply download [spectra.min.js](https://github.com/avp/spectra/releases/) and include it before your source files.\n\n### Bower\n\nThe bower package is at `spectrajs`.\n\n    bower install spectrajs\n\n### Node\n\nThis module also works with Node. Simply run `npm install spectra` and use `var Spectra = require('spectra')` to set it up.\n\nAPI Reference\n-------------\n\nRefer to http://avp.github.io/spectra for reference on how to use Spectra.\n\nTests\n-----\n\nThere are [Jasmine](https://jasmine.github.io) tests included in the `tests` folder. Simply run `grunt test` from the root of the repository to run the tests. This also checks JSHint. Alternatively, run `grunt` to keep watch over source and test files, and automatically rerun the tests when the files change.\n\n### Coverage\n\nTest coverage information can be generated by running `grunt karma`. Coverage information will be located in `test/coverage` after generation.\n\nBuilding\n--------\n\nTo minify Spectra, run `grunt build`.\n\nContributing\n------------\n\nView [CONTRIBUTING.md](https://github.com/avp/spectra/blob/master/CONTRIBUTING.md) for guidelines on how to contribute.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favp%2Fspectra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favp%2Fspectra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favp%2Fspectra/lists"}