{"id":13524476,"url":"https://github.com/Mechazawa/Love-Debug-Graph","last_synced_at":"2025-04-01T02:31:44.523Z","repository":{"id":151433177,"uuid":"48611008","full_name":"Mechazawa/Love-Debug-Graph","owner":"Mechazawa","description":"An fps/memory/misc graph utillity for Löve2D","archived":false,"fork":false,"pushed_at":"2017-09-17T14:27:58.000Z","size":5,"stargazers_count":34,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-29T20:17:23.975Z","etag":null,"topics":["debugger","love2d","lua"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mechazawa.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}},"created_at":"2015-12-26T13:09:52.000Z","updated_at":"2024-05-19T11:38:58.000Z","dependencies_parsed_at":"2023-07-28T01:15:51.941Z","dependency_job_id":null,"html_url":"https://github.com/Mechazawa/Love-Debug-Graph","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mechazawa%2FLove-Debug-Graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mechazawa%2FLove-Debug-Graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mechazawa%2FLove-Debug-Graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mechazawa%2FLove-Debug-Graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mechazawa","download_url":"https://codeload.github.com/Mechazawa/Love-Debug-Graph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222693039,"owners_count":17024034,"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":["debugger","love2d","lua"],"created_at":"2024-08-01T06:01:10.472Z","updated_at":"2024-11-02T08:31:52.136Z","avatar_url":"https://github.com/Mechazawa.png","language":"Lua","readme":"Löve Debug Graph\n------------------\n\nA Löve2D graph tool for drawing FPS, memory or custom graphs.\n\n![](http://i.imgur.com/YiliXZQ.png)\n\n## Usage\n\n```lua\ndebugGraph = require 'debugGraph'\n\n-- https://love2d.org/wiki/General_math\n-- Returns 'n' rounded to the nearest 'deci'th (defaulting whole numbers).\nfunction math.round(n, deci)\n  deci = 10^(deci or 0)\n  return math.floor(n*deci+.5)/deci\nend\n\nfunction love.load()\n  fpsGraph = debugGraph:new('fps', 0, 0)\n  memGraph = debugGraph:new('mem', 0, 30)\n  dtGraph = debugGraph:new('custom', 0, 60)\nend\n\nfunction love.update(dt)\n\n  -- Update the graphs\n  fpsGraph:update(dt)\n  memGraph:update(dt)\n\n  -- Update our custom graph\n  dtGraph:update(dt, math.floor(dt * 1000))\n  dtGraph.label = 'DT: ' ..  math.round(dt, 4)\nend\n\nfunction love.draw()\n  -- Draw graphs\n  fpsGraph:draw()\n  memGraph:draw()\n  dtGraph:draw()\nend\n\nfunction love.keypressed(key)\n  if key == 'escape' then\n    love.event.quit()\n  end\nend\n```\n\n## Configuration\n\nKey      | Default       | Description\n---------|---------------|----------------------------\nx        | 0             | The X position of the graph\ny        | 0             | The Y position of the graph\nwidth    | 50            | The graph width\nheight   | 30            | The graph height\ndelay    | 0.5           | The update delay in seconds\nlabel    | #graph type#  | The graph label\nfont     | Vera Sans 8px | The label font\n","funding_links":[],"categories":["Development"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMechazawa%2FLove-Debug-Graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMechazawa%2FLove-Debug-Graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMechazawa%2FLove-Debug-Graph/lists"}