Created
October 31, 2014 07:56
-
-
Save JimRoepcke/9de707d648d8da67e6f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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