{"id":21820021,"url":"https://github.com/ngageoint/color-java","last_synced_at":"2025-10-13T03:25:32.838Z","repository":{"id":43406182,"uuid":"146496122","full_name":"ngageoint/color-java","owner":"ngageoint","description":"Color Java Library","archived":false,"fork":false,"pushed_at":"2024-04-03T15:33:03.000Z","size":348,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-07-14T03:03:44.621Z","etag":null,"topics":["color","colors","hex","hex-color","hex-colors","hsl","hsl-color","java","nga","rgb","rgb-color","rgb-colors","rgba"],"latest_commit_sha":null,"homepage":"https://ngageoint.github.io/color-java/","language":"Java","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/ngageoint.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-28T19:21:50.000Z","updated_at":"2024-11-06T07:36:29.000Z","dependencies_parsed_at":"2024-04-03T16:50:47.932Z","dependency_job_id":null,"html_url":"https://github.com/ngageoint/color-java","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ngageoint/color-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fcolor-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fcolor-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fcolor-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fcolor-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngageoint","download_url":"https://codeload.github.com/ngageoint/color-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fcolor-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013497,"owners_count":26085368,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","colors","hex","hex-color","hex-colors","hsl","hsl-color","java","nga","rgb","rgb-color","rgb-colors","rgba"],"created_at":"2024-11-27T16:28:03.142Z","updated_at":"2025-10-13T03:25:32.793Z","avatar_url":"https://github.com/ngageoint.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Color Java\n\n#### Color Lib ####\n\nThe Color Library was developed at the [National Geospatial-Intelligence Agency (NGA)](http://www.nga.mil/) in collaboration with [BIT Systems](https://www.caci.com/bit-systems/). The government has \"unlimited rights\" and is releasing this software to increase the impact of government investments by providing developers with the opportunity to take things in new directions. The software use, modification, and distribution rights are stipulated within the [MIT license](http://choosealicense.com/licenses/mit/).\n\n### Pull Requests ###\nIf you'd like to contribute to this project, please make a pull request. We'll review the pull request and discuss the changes. All pull request contributions to this project will be released under the MIT license.\n\nSoftware source code previously released under an open source license and then modified by NGA staff is considered a \"joint work\" (see 17 USC § 101); it is partially copyrighted, partially public domain, and as a whole is protected by the copyrights of the non-government authors and must be released according to the terms of the original open source license.\n\n### About ###\n\n[Color](http://ngageoint.github.io/color-java/) is a Java library providing color representation with support for hex, RBG, arithmetic RBG, HSL, and integer colors.\n\n### Usage ###\n\nView the latest [Javadoc](http://ngageoint.github.io/color-java/docs/api/)\n\n```java\n\nColor rgb = Color.color(154, 205, 50);\nColor rgba = Color.color(255, 165, 0, 64);\nColor rgbOpacity = Color.color(255, 165, 0, 0.25f);\nColor arithmeticRGB = Color.color(1.0f, 0.64705882352f, 0.0f);\nColor arithmeticRGBOpacity = Color.color(1.0f, 0.64705882352f, 0.0f,\n    0.25098039215f);\nColor hex = Color.color(\"#BA55D3\");\nColor hexAlpha = Color.color(\"#D9FFFF00\");\nColor hexInteger = Color.color(0xFFC000);\nColor hexIntegerAlpha = new Color(0x40FFA500);\nColor integer = Color.color(16711680);\nColor integerAlpha = Color.color(-12303292);\nColor hexSingles = Color.color(\"FF\", \"C0\", \"CB\");\nColor hexSinglesAlpha = Color.color(\"00\", \"00\", \"00\", \"80\");\nColor hexSinglesOpacity = Color.color(\"FF\", \"A5\", \"00\", 0.25f);\nColor hsl = Color.color(new float[] { 300.0f, 1.0f, 0.2509804f });\nColor hsla = Color\n    .color(new float[] { 60.0f, 1.0f, 0.5f, 0.85098039215f });\nColor orangeAlpha = Color.color(ColorConstants.ORANGE, 120);\nColor orangeOpacity = Color.color(ColorConstants.ORANGE, 0.25f);\n\nColor color = Color.blue();\ncolor.setAlpha(56);\nString hexValue = color.getColorHex();\nString hexShorthand = color.getColorHexShorthand();\nString hexWithAlpha = color.getColorHexWithAlpha();\nString hexShorthandWithAlpha = color.getColorHexShorthandWithAlpha();\nint integerValue = color.getColor();\nint integerAlphaValue = color.getColorWithAlpha();\nint red = color.getRed();\nfloat greenArithmetic = color.getGreenArithmetic();\nString blueHex = color.getBlueHex();\nString alphaHexShorthand = color.getAlphaHexShorthand();\nfloat opacity = color.getOpacity();\nfloat[] hslValue = color.getHSL();\nfloat hue = color.getHue();\nfloat saturation = color.getSaturation();\nfloat lightness = color.getLightness();\n\n```\n\n### Installation ###\n\nPull from the [Maven Central Repository](http://search.maven.org/#artifactdetails|mil.nga|color|1.0.0|jar) (JAR, POM, Source, Javadoc)\n\n    \u003cdependency\u003e\n        \u003cgroupId\u003emil.nga\u003c/groupId\u003e\n        \u003cartifactId\u003ecolor\u003c/artifactId\u003e\n        \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003c/dependency\u003e\n\n### Build ###\n\n[![Build \u0026 Test](https://github.com/ngageoint/color-java/workflows/Build%20\u0026%20Test/badge.svg)](https://github.com/ngageoint/color-java/actions/workflows/build-test.yml)\n\nBuild this repository using Eclipse and/or Maven:\n\n    mvn clean install\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngageoint%2Fcolor-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngageoint%2Fcolor-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngageoint%2Fcolor-java/lists"}