Latest 0.0.2
Homepage https://github.com/carddeck/guilloche
License MIT
Platforms ios 7.0, requires ARC
Authors

Guilloche creates Guilloché Patterns in UIViews. It’s based heavily on Tom Beddard‘s AS3 source code and Guilloche Pattern Generator. We use it to generate unique backs for each deck of cards.

In the example application, single tapping on the GuillocheView will toggle full-screen viewing. Long pressing will save the current Guilloche to the Photo Library.

Usage


#import 'GuillocheView.h'

GuillocheView *guillocheView = [[GuillocheView alloc] initWithFrame:self.view.frame]; // Creates a full view Guilloche pattern with default values
[self.view addSubview:guillocheView]; // add to the current view

Attributes

GuillocheView supports the following attributes:

float scale;
float steps;
float multiplier;
float majorRipple;
float minorRipple;
float radius;
float opacity;
float lineThickness;
NSArray *lineColors;

The view updates live when one of its attribute properties changes.

guillocheView.scale = 3.0; // guillocheView re-renders automatically

Resizing

Resizing is not performed automatically by the class, however it’s very easy to do:

// init
GuillocheView *guillocheView = [[GuillocheView alloc] initWithFrame:self.view.frame];
[self.view addSubview:guillocheView];
// update size to full width, 100px wide
guillocheView.frame = CGRectMake(0.0, 0.0, self.view.frame.size.width, 100.0);
// re-render
[guillocheView setNeedsDisplay];

Screenshots

Example App
Default Full Screen
Alternative Example
Alternative Example 2

Contributing

Send me Pull Requests here, please.

Latest podspec

{
    "name": "Guilloche",
    "version": "0.0.2",
    "summary": "Guilloche creates Guilloche patterns in a UIView.",
    "description": "                   Guilloche creates [Guillochu00e9 Patterns](http://en.wikipedia.org/wiki/Guilloch%C3%A9) in UIViews. It's based heavily on [Tom Beddard](http://www.subblue.com/about)'s AS3 source code and [Guilloche Pattern Generator](http://www.subblue.com/projects/guilloche). We use it to generate unique backs for each deck of cards.n",
    "homepage": "https://github.com/carddeck/guilloche",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Zane Shannon": "[email protected]"
    },
    "social_media_url": "http://twitter.com/zaneshannon",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/carddeck/guilloche.git",
        "tag": "0.0.2"
    },
    "screenshots": [
        "https://github.com/carddeck/guilloche/blob/screenshots/screenshots/default-controls.png?raw=true",
        "https://github.com/carddeck/guilloche/blob/screenshots/screenshots/default-fullscreen.png?raw=true",
        "https://github.com/carddeck/guilloche/blob/screenshots/screenshots/fullscreen-alt.png?raw=true",
        "https://github.com/carddeck/guilloche/blob/screenshots/screenshots/fullscreen-alt2.png?raw=true"
    ],
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "public_header_files": [
        "Classes/GuillocheView.h"
    ],
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This