{"id":24430811,"url":"https://github.com/programmarchy/clippingnodeexample","last_synced_at":"2026-04-21T08:37:14.672Z","repository":{"id":18905142,"uuid":"22123583","full_name":"programmarchy/ClippingNodeExample","owner":"programmarchy","description":"A CCClippingNode example illustrated by a sliding door effect using SpriteBuilder","archived":false,"fork":false,"pushed_at":"2014-07-22T23:11:03.000Z","size":3936,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T14:57:49.878Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/programmarchy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-22T22:45:10.000Z","updated_at":"2014-09-25T15:25:21.000Z","dependencies_parsed_at":"2022-08-05T01:15:20.317Z","dependency_job_id":null,"html_url":"https://github.com/programmarchy/ClippingNodeExample","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/programmarchy%2FClippingNodeExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmarchy%2FClippingNodeExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmarchy%2FClippingNodeExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmarchy%2FClippingNodeExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/programmarchy","download_url":"https://codeload.github.com/programmarchy/ClippingNodeExample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243466987,"owners_count":20295309,"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-01-20T14:57:56.083Z","updated_at":"2025-12-27T11:16:26.668Z","avatar_url":"https://github.com/programmarchy.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"ClippingNodeExample\n===================\n\nA CCClippingNode example illustrated by a sliding door effect using SpriteBuilder.\n\n![iOS Simulator](https://github.com/programmarchy/ClippingNodeExample/blob/master/Assets/Simulator.png)\n\nA circle is used as the clipping region, inside which two rectangular doors slide open, creating a sliding door effect. Touching the screen opens or closes the doors.\n\nThe CCClippingNode is placed in the scene as a sibling to the circle sprite, whose alpha channel will be used as the clipping stencil.\n\n![SpriteBuilder](https://github.com/programmarchy/ClippingNodeExample/blob/master/Assets/SpriteBuilder.png)\n\nThe doors are added as children to the CCClippingNode. The parts of the door outside the circle clipping stencil will not be visible.\n\nIn the scene's `didLoadFromCCB`, the circle sprite is assigned to the CCClippingNode's stencil:\n\n```\n- (void)didLoadFromCCB\n{\n    self.clippingNode.stencil = self.myCircle;\n    self.clippingNode.alphaThreshold = 0.25;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammarchy%2Fclippingnodeexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogrammarchy%2Fclippingnodeexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammarchy%2Fclippingnodeexample/lists"}