{"id":15722629,"url":"https://github.com/subsoap/defblend","last_synced_at":"2025-05-05T21:10:32.398Z","repository":{"id":41497704,"uuid":"119778010","full_name":"subsoap/defblend","owner":"subsoap","description":"Blend solid colors with your sprites in Defold using various blending modes","archived":false,"fork":false,"pushed_at":"2024-07-11T19:04:27.000Z","size":46,"stargazers_count":21,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-02T23:37:51.057Z","etag":null,"topics":["defold","defold-game-engine"],"latest_commit_sha":null,"homepage":null,"language":"GLSL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subsoap.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":"2018-02-01T03:31:43.000Z","updated_at":"2025-04-26T11:02:51.000Z","dependencies_parsed_at":"2024-10-24T16:51:02.404Z","dependency_job_id":"29235001-0063-47a4-b0cd-d3839ddb08f3","html_url":"https://github.com/subsoap/defblend","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/subsoap%2Fdefblend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsoap%2Fdefblend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsoap%2Fdefblend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsoap%2Fdefblend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subsoap","download_url":"https://codeload.github.com/subsoap/defblend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252577020,"owners_count":21770721,"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":["defold","defold-game-engine"],"created_at":"2024-10-03T22:08:41.319Z","updated_at":"2025-05-05T21:10:32.349Z","avatar_url":"https://github.com/subsoap.png","language":"GLSL","funding_links":[],"categories":["Libraries"],"sub_categories":["Programming Language"],"readme":"# DefBlend\nBlend solid colors with your sprites in Defold using various blending modes. Useful for special effects! Can be used on render targets too.\n\n(Blending with textures is possible to add too but not in this version.)\n\n## Installation\nYou can use DefBlend in your own project by adding this project as a [Defold library dependency](http://www.defold.com/manuals/libraries/). Open your game.project file and in the dependencies field under project add:\n\n\thttps://github.com/subsoap/defblend/archive/master.zip\n\nYou can also manually add shader materials individually to your project.\n\n## Usage\n\nAdd a blending material to your sprite either normal or pixel version. Then in a script change the color and alpha of that blending mode. You could create new materials with a mixture of different blending methods if you want multiple effects.\n\t\nThese blending modes should generally match how they work in programs such as Photoshop. If you apply a solid color layer with clipping to a sprite you can test various effects more quickly in image editing programs.\n\nSetting custom properties to materials breaks batching of rendering. If you want a little more performance and always use the same values for an effect you can make a copy of a blend material, set the properties within it to whatever values you need. Then use that version of the material instead of changing the stock DefBlend materials with setting their properties for each.\n\nBlending Modes:\n\n* Normal\n---\n* Darken\n* Multiply\n* Color Burn\n* Linear Burn\n---\n* Lighten\n* Screen\n* Color Dodge\n* Linear Dodge (Add)\n---\n* Overlay\n* Soft Light\n* Hard Light\n* Vivid Light\n* Linear Light\n* Pin Light\n* Hard Mix\n---\n* Difference\n* Exclusion\n* Subtract\n* Divide\n---\n* Average\n* Glow\n* Negation\n* Phoenix\n* Reflect\n\nNot Supported (yet?):\n\n* Dissolve (cross fade)\n* Darker Color\n* Lighter Color\n* Hue\n* Saturation\n* Color\n* Luminosity\n\nTODO helper functions","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubsoap%2Fdefblend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubsoap%2Fdefblend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubsoap%2Fdefblend/lists"}