{"id":18562781,"url":"https://github.com/ruby-processing/arcball","last_synced_at":"2025-05-15T17:36:55.146Z","repository":{"id":78032464,"uuid":"53772203","full_name":"ruby-processing/ArcBall","owner":"ruby-processing","description":"ArcBall functionality for processing (ruby versions) as gem","archived":false,"fork":false,"pushed_at":"2021-10-10T15:38:56.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-17T12:45:42.418Z","etag":null,"topics":["arcball","arcball-functionality","picrate","propane","rotation"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby-processing.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-03-13T07:08:02.000Z","updated_at":"2021-10-10T15:38:58.000Z","dependencies_parsed_at":"2023-02-25T23:15:32.223Z","dependency_job_id":null,"html_url":"https://github.com/ruby-processing/ArcBall","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FArcBall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FArcBall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FArcBall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FArcBall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby-processing","download_url":"https://codeload.github.com/ruby-processing/ArcBall/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254388650,"owners_count":22063087,"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":["arcball","arcball-functionality","picrate","propane","rotation"],"created_at":"2024-11-06T22:10:53.316Z","updated_at":"2025-05-15T17:36:55.122Z","avatar_url":"https://github.com/ruby-processing.png","language":"Java","readme":"# ArcBall\nArcBall functionality for processing (ruby versions) as gem\n\n### Example Usage\nThe sketch class need to to inherit from PApplet to work and self should return such an instance. The following is a propane example. Drag mouse to rotate. Hold down 'x', 'y' or 'z' keys to constrain axis of rotation, mouse-wheel to zoom.\n\n```ruby\nclass ArcBallBox \u003c Propane::App\n  ############################\n  # Use mouse drag to rotate\n  # the arcball. Use mousewheel\n  # to zoom. Hold down x, y, z\n  # to constrain rotation axis.\n  ############################\n  def setup\n    sketch_title 'Arcball Box'\n    Processing::ArcBall.init self, 300, 300\n    fill 180\n  end\n\n  def draw\n    background 50\n    box 300, 300, 300\n  end\n\n  def settings\n    size 600, 600, P3D\n    smooth 8\n  end\nend\n\nArcBallBox.new\n```\nSince version 0.0.2, you can also fix rotation to one axis at initialization\n\n```ruby\nrequire 'arcball'\n\ndef setup\n  size(600, 600, P3D)\n  smooth(8)\n  Processing::ArcBall.constrain self #, :zaxis # default constrains to y-axis\n  fill 180\nend\n\ndef draw\n  background(50)  \n  box(300, 300, 300)\nend\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby-processing%2Farcball","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby-processing%2Farcball","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby-processing%2Farcball/lists"}