{"id":21299775,"url":"https://github.com/ericoporto/distfx","last_synced_at":"2026-01-28T13:02:12.100Z","repository":{"id":85939441,"uuid":"561074674","full_name":"ericoporto/distfx","owner":"ericoporto","description":"distortion effects for AGS, based on Earthbound battle effects","archived":false,"fork":false,"pushed_at":"2024-02-24T13:31:24.000Z","size":2349,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T18:14:49.780Z","etag":null,"topics":["adventure-game-studio","adventuregamestudio","ags-modules","ags-script","earthbound","earthbound-battle-backgrounds"],"latest_commit_sha":null,"homepage":"https://ericoporto.github.io/distfx/","language":"AGS Script","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/ericoporto.png","metadata":{"files":{"readme":"README.BBCode","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}},"created_at":"2022-11-02T22:20:31.000Z","updated_at":"2024-11-25T12:20:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"34bc46cf-876d-4202-80aa-a6bbe5c4857e","html_url":"https://github.com/ericoporto/distfx","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ericoporto/distfx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2Fdistfx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2Fdistfx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2Fdistfx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2Fdistfx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericoporto","download_url":"https://codeload.github.com/ericoporto/distfx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2Fdistfx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28845768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T12:37:07.070Z","status":"ssl_error","status_checked_at":"2026-01-28T12:37:06.657Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["adventure-game-studio","adventuregamestudio","ags-modules","ags-script","earthbound","earthbound-battle-backgrounds"],"created_at":"2024-11-21T15:05:56.461Z","updated_at":"2026-01-28T13:02:12.086Z","avatar_url":"https://github.com/ericoporto.png","language":"AGS Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"[size=14pt][b]DistFX[/b][/size] [color=gray][b]version 0.1.0 [/b][/color]\n\n[url=\"https://github.com/ericoporto/distfx/releases/download/0.1.0/distfx.scm\"]Get Latest Release [b]distfx.scm[/b][/url] | [url=\"https://github.com/ericoporto/distfx\"]GitHub Repo[/url] | [url=\"https://github.com/ericoporto/distfx/releases/download/0.1.0/distfx_demo.zip\"]Project with Demo![/url]\n\nAGS Script Module for Distortion Effects, based on Earthbound Battle Backgrounds.\n\n[url=\"https://ericoporto.github.io/distfx/\"][img width=640 height=400]https://user-images.githubusercontent.com/2244442/199853408-98184522-5c9c-4426-ad4f-34b698cc86ab.gif[/img][/url]\n\n[url=\"https://ericoporto.github.io/distfx/\"]Play with the demo![/url]\n\n[size=14pt][b]Usage[/b][/size]\n\nIn a room script, link before fade in and repeatedly execute, and try the example below.\n\n[code]DistFX fx; // somewhere with the same lifetime as the output surface while distorted\nOverlay* ovr;\nDynamicSprite* spr;\n\nfunction room_RepExec()\n{\n  fx.Update(Room.GetDrawingSurfaceForBackground(), spr.GetDrawingSurface(), 2 /* effect */);\n  ovr.Graphic = spr.Graphic;\n}\n\nfunction room_Load()\n{\n  if(ovr == null) {\n    spr = DynamicSprite.CreateFromBackground();\n    ovr = Overlay.CreateGraphical(0, 0, spr.Graphic, true);\n  }\n}[/code]\n\nOriginal Earthbound effects used a per pixel approach, but due to how AGS Script drawing performs and works, this module uses a tile based approach.\n\n[size=14pt][b]Script API[/b][/size]\n\n[font=Courier New][b]DistFX.Update[/b][/font]\n[code]void DistFX.Update(DrawingSurface* source, DrawingSurface* dest, int effect);[/code]\nDraws from a source surface to a destination surface using a distortion effect.\n\n[font=Courier New][b]DistFX.Reset[/b][/font]\n[code]void DistFX.Reset();[/code]\nReset internal state, use on state change.\n\n[font=Courier New][b]DistFX.DrawingTransparency[/b][/font]\n[code]attribute int DistFX.DrawingTransparency;[/code]\nDrawing Transparency, use for blurring the effects. Default is 0, range from 0 to 99.\n\n[font=Courier New][b]DistFX.TileWidth[/b][/font]\n[code]attribute int DistFX.TileWidth;[/code]\nDistortion Tile Width, factor of source width, bigger is less resource intensive. Default is 64 pixels.\n\n[font=Courier New][b]DistFX.TileHeight[/b][/font]\n[code]attribute int DistFX.TileHeight;[/code]\nDistortion Tile Height, factor of source height, bigger is less resource intensive. Default is 1 pixel.\n\n[size=14pt][b]License[/b][/size]\n\nThis code is licensed with MIT [url=\"https://github.com/ericoporto/distfx/blob/main/LICENSE\"][font=Courier New]LICENSE[/font][/url].","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericoporto%2Fdistfx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericoporto%2Fdistfx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericoporto%2Fdistfx/lists"}