{"id":19415270,"url":"https://github.com/jakeroggenbuck/colorgradient-julia","last_synced_at":"2025-11-05T03:03:36.022Z","repository":{"id":47213587,"uuid":"386090311","full_name":"JakeRoggenbuck/colorgradient-julia","owner":"JakeRoggenbuck","description":"A tool in Julia to make color gradients","archived":false,"fork":false,"pushed_at":"2023-01-01T07:31:42.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-07T16:24:28.109Z","etag":null,"topics":["julia","julia-language","julialang","math"],"latest_commit_sha":null,"homepage":"","language":"Julia","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/JakeRoggenbuck.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}},"created_at":"2021-07-14T22:21:13.000Z","updated_at":"2022-06-18T22:18:55.000Z","dependencies_parsed_at":"2023-01-31T21:02:06.466Z","dependency_job_id":null,"html_url":"https://github.com/JakeRoggenbuck/colorgradient-julia","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeRoggenbuck%2Fcolorgradient-julia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeRoggenbuck%2Fcolorgradient-julia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeRoggenbuck%2Fcolorgradient-julia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeRoggenbuck%2Fcolorgradient-julia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JakeRoggenbuck","download_url":"https://codeload.github.com/JakeRoggenbuck/colorgradient-julia/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240593178,"owners_count":19825939,"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":["julia","julia-language","julialang","math"],"created_at":"2024-11-10T12:42:26.515Z","updated_at":"2025-11-05T03:03:35.953Z","avatar_url":"https://github.com/JakeRoggenbuck.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# colorgradient-julia\n- Python version [colorgradient](https://github.com/JakeRoggenbuck/colorgradient)\n- Rust version [colorgradient-rs](https://github.com/JakeRoggenbuck/colorgradient-rs)\n- Julia version [colorgradient-julia](https://github.com/JakeRoggenbuck/colorgradient-julia)\n- C version [colorgradient-c](https://github.com/JakeRoggenbuck/colorgradient-c)\n- Go version [colorgradient-go](https://github.com/JakeRoggenbuck/colorgradient-go)\n- Clojure version [colorgradient-clj](https://github.com/JakeRoggenbuck/colorgradient-clj)\n\n\u003cimg width=\"400\" alt=\"color grad\" src=\"https://user-images.githubusercontent.com/35516367/210163818-5f286e55-9b2a-431c-a397-c1a24a37dbb1.png\"\u003e\n\n```jl\n# Find the slope of two point\nfind_slope(x1, y1, x2, y2) = (y2 - y1) / (x2 - x1)\n\n# Find the closest whole numbers on both sides of a x\nneighbors(x) = round(x), ceil(x)\n\n# Find the predicted value of y given a value x\nfunction find_y(x, known_x)\n    # Check if the given value is exactly one in the known list\n    if round(x) == x\n        return known_x[x]\n    end\n\n    left_x, right_x = neighbors(x)\n\n    left_y = known_x[left_x]\n    right_y = known_x[right_x]\n\n    slope = find_slope(left_x, left_y, right_x, right_y)\n\n    return left_y + (slope * (x - left_x))\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakeroggenbuck%2Fcolorgradient-julia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakeroggenbuck%2Fcolorgradient-julia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakeroggenbuck%2Fcolorgradient-julia/lists"}