{"id":18270409,"url":"https://github.com/dblapps/DAScratchPad","last_synced_at":"2025-04-05T01:30:34.679Z","repository":{"id":56907068,"uuid":"10412661","full_name":"dblapps/DAScratchPad","owner":"dblapps","description":null,"archived":false,"fork":false,"pushed_at":"2014-04-21T20:01:34.000Z","size":340,"stargazers_count":110,"open_issues_count":4,"forks_count":24,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-03-14T18:36:01.859Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dblapps.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}},"created_at":"2013-05-31T20:43:04.000Z","updated_at":"2023-10-19T07:06:52.000Z","dependencies_parsed_at":"2022-08-21T03:20:50.586Z","dependency_job_id":null,"html_url":"https://github.com/dblapps/DAScratchPad","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblapps%2FDAScratchPad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblapps%2FDAScratchPad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblapps%2FDAScratchPad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblapps%2FDAScratchPad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dblapps","download_url":"https://codeload.github.com/dblapps/DAScratchPad/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276022,"owners_count":20912285,"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":"2024-11-05T11:38:36.186Z","updated_at":"2025-04-05T01:30:34.281Z","avatar_url":"https://github.com/dblapps.png","language":"Objective-C","readme":"DAScratchPad\n=======================\n\n#### Author\n\nDavid B. Levi (https://github.com/dblapps)\n\n\n#### Overview\n\nDAScratchPad is a small UIView subclass that provides a simple drawing interface.  It provides both a painting and airbrushing capability.  You can put this view anywhere in your UI, and your user can draw in it.  You can add UI controls to change drawing color, line width, opacity, select painting or airbrushing, and set airbrush flow.  You can also get the current image from the scratch pad, clear the current image, or replace the current image.\n\nAn example xcode project is included that demonstrates simple usage. \n\nDAScratchPad is compatible with iOS4.3+.\n\n\n#### License\n\nDAScratchPad is available under the MIT license. See the LICENSE file for more info.\n\n\n#### How To Use\n\nCopy the contents of the DAScratchPad directory to your xcode project.\n\nImport DAScratchPad.h in appropriate places.\n\nAdd the QuartzCore frameworks to your project.\n\nAdd instance of DAScratchPad in interface builder, or add them programatically:\n\n\tDAScratchPad* scratchpad = [[DAScratchPad alloc] initWithFrame:CGRectMake(30.0f, 30.0f, 150.0f, 150.0f)];\n\t[self.view addSubview:scratchpad];\n\nChange properties to control color, line width, and opacity:\n\n\tscratchpad.drawColor = [UIColor greenColor];\n\tscratchpad.drawWidth = 15.0f;\n\tscratchpad.drawOpacity = 0.5f; // range is 0.0f through 1.0f\n\nSelect painting or airbrushing, and set airbrush rate and flow:\n\n\tscratchpad.toolType = DAScratchPadToolTypePaint;\n\tscratchpad.toolType = DAScratchPadToolTypeAirBrush;\n\tscratchpad.airBrushFlow = 0.7f; // range is 0.0f through 1.0f\n\nUse 'getSketch' to retrieve the current image:\n\n\tUIImage* sketch = [scratchpad getSketch];\n\nUse 'setSketch:' to replace the current image:\n\n\tUIImage* image = [UIImage imageNamed:@\"SavedImage.jpg\"];\n\t[scratchpad setSketch:image];\n\nUse 'clearToColor:' to clear the current image:\n\n\t[scratchpad clearToColor:[UIColor whiteColor]];\n\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdblapps%2FDAScratchPad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdblapps%2FDAScratchPad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdblapps%2FDAScratchPad/lists"}