{"id":16602553,"url":"https://github.com/xta/spark-color-converter","last_synced_at":"2026-05-28T01:04:51.933Z","repository":{"id":139224498,"uuid":"64164310","full_name":"xta/spark-color-converter","owner":"xta","description":"convert between RGB \u0026 Hex colors","archived":false,"fork":false,"pushed_at":"2016-08-01T21:35:45.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-15T01:13:59.723Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://spark-packages.org/package/xta/spark-color-converter","language":"Shell","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/xta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-07-25T20:05:59.000Z","updated_at":"2016-07-26T19:59:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"58a7cba4-bcd6-4f5d-a6a1-449268159f29","html_url":"https://github.com/xta/spark-color-converter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/xta/spark-color-converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xta%2Fspark-color-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xta%2Fspark-color-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xta%2Fspark-color-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xta%2Fspark-color-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xta","download_url":"https://codeload.github.com/xta/spark-color-converter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xta%2Fspark-color-converter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33589685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"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":[],"created_at":"2024-10-12T00:22:47.997Z","updated_at":"2026-05-28T01:04:51.917Z","avatar_url":"https://github.com/xta.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spark Color Converter\n\n---\n\n# Usage\n\n## Setup\n\n#### command line\n\n    # cd to your $SPARK_HOME directory\n    ./bin/spark-shell --packages xta:spark-color-converter:0.0.3\n    import com.xta.spark.color.converter._\n\n#### databricks.com\n\n    # create library \u0026 attach to cluster per https://databricks.com/blog/2015/07/28/using-3rd-party-libraries-in-databricks-apache-spark-packages-and-maven-libraries.html\n    import com.xta.spark.color.converter._\n\n## Methods\n\n    # convert RGB to Hex\n    val black = new Rgb((0, 0, 0))\n    val hex = Convert.RgbToHex(black)\n    hex.value\n    // String = #000000\n\n    # convert Hex to RGB\n    val blue = new Hex(\"#0074D9\")\n    val rgb = Convert.HexToRgb(blue)\n    rgb.value\n    // (Int, Int, Int) = (0,116,217)\n\n---\n\n# Meta\n\n## Development\n\n    sbt test\n\n## New Releases\n\n    sbt spPublish\n    # while logged in, register a release at https://spark-packages.org/package/xta/spark-color-converter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxta%2Fspark-color-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxta%2Fspark-color-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxta%2Fspark-color-converter/lists"}