Skip to content

Instantly share code, notes, and snippets.

@JimRoepcke
Created October 31, 2014 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JimRoepcke/9de707d648d8da67e6f9 to your computer and use it in GitHub Desktop.
Save JimRoepcke/9de707d648d8da67e6f9 to your computer and use it in GitHub Desktop.
- (UIImage *)mergeImages:(NSArray *)images
{
return nil; // hand waving
}
- (void)exampleWorkspace
{
[KZNNodeType registerType:@"MergeImages" inputs:@{@"Images<T>": NSArray.class, @"<T>": UIImage.class} outputs:@{@"Output" : UIImage.class} processingBlock:^(id node, NSDictionary *inputs, NSMutableDictionary *outputs) {
outputs[@"Output"] = [self mergeImages:inputs[@"Images"]];
}];
// MergeImages would have an input "Images" that accepts a UIImage.
// If you connect a UIImage to "Images", a second circle appears
// below the connected one letting me pass in another image.
// And so on
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment