{"id":27057844,"url":"https://github.com/mrange/fsdistancefield","last_synced_at":"2025-04-05T11:33:41.105Z","repository":{"id":60632047,"uuid":"543908545","full_name":"mrange/FsDistanceField","owner":"mrange","description":"Computes a distance field PNG from an input image","archived":false,"fork":false,"pushed_at":"2024-10-26T06:22:28.000Z","size":152,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T02:09:04.950Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"F#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrange.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":"2022-10-01T05:52:56.000Z","updated_at":"2024-10-26T06:22:32.000Z","dependencies_parsed_at":"2023-01-19T16:33:41.224Z","dependency_job_id":null,"html_url":"https://github.com/mrange/FsDistanceField","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrange%2FFsDistanceField","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrange%2FFsDistanceField/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrange%2FFsDistanceField/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrange%2FFsDistanceField/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrange","download_url":"https://codeload.github.com/mrange/FsDistanceField/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332057,"owners_count":20921849,"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":"2025-04-05T11:33:40.183Z","updated_at":"2025-04-05T11:33:41.095Z","avatar_url":"https://github.com/mrange.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FsDistanceField\nComputes a distance field PNG from an input image.\n\nDistance fields are commonly used in shader world where it can be used to create decals and other graphics that dont' get blurry upon scaling and support things like drop shadow, inner glow, outer glow and so on \"for free\".\n\n## Install\n\n```bash\n# Install the tool globally\ndotnet tool install -g FsDistanceField\n# Print the help\ncreate-distance-field --help\n# Should respond with this\n# Description:\n#   Computes a distance field image from an input image\n#\n# Usage:\n#   create-distance-field [options]\n#\n# Options:\n#   --version                         Show version information\n#   -?, -h, --help                    Show help and usage information\n#   -i, --input \u003cinput\u003e (REQUIRED)    Input image file to compute distance field for\n#   -o, --output \u003coutput\u003e (REQUIRED)  Output PNG file to for the distance field\n#   -r, --radius \u003cradius\u003e             Radius of distance field in pixels [default: 32]\n#   -c, --cutoff \u003ccutoff\u003e             Cutoff of distance field [default: 0.25]\n#   -p, --padding \u003cpadding\u003e           Padding applied to distance field image [default: 0]\n#   -y, --overwrite                   Overwrite existing file [default: False]\n```\n\n## Build \u0026 Run\n\n```bash\ncd src/FsDistanceField\n# Print help screen\ndotnet run -- -h\n# Generate blazor distance field\ndotnet run -c Release -- -i ../../assets/Blazor.png -o ../../assets/Blazor_distance.png -r 200 -c 0.5 -y true\n```\n\n## Licensed software\n\n### FsDistanceField\nBSD 2-Clause License\n\nCopyright (c) 2022, Mårten Rånge\n\ngithub : https://github.com/mrange/FsDistanceField\nlicense: https://github.com/mrange/FsDistanceField/LICENSE\n\n### Distance field algorithm based on tiny-sdf (Mapbox)\nCopyright © 2016-2021 Mapbox, Inc.\nThis code available under the terms of the BSD 2-Clause license.\n\ngithub : https://github.com/mapbox/tiny-sdf\nlicense: https://github.com/mapbox/tiny-sdf/blob/main/LICENSE.txt\n\n### Image processing library (SixLabors.ImageSharp)\nSix Labors Split License\nVersion 1.0, June 2022\nCopyright (c) Six Labors\n\nUses the Apache License, Version 2.0 branch of the Six Labors Split License as:\n- FsDistanceField is fulfilling the requirement: You are consuming the Work in for use in software licensed under an Open Source or Source Available license.\n\ngithub : https://github.com/SixLabors/ImageSharp\nlicense: https://github.com/SixLabors/ImageSharp/blob/main/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrange%2Ffsdistancefield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrange%2Ffsdistancefield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrange%2Ffsdistancefield/lists"}