Files
IJSVG/source/IJSVGPattern.m
T
Curtis Hard 5a03e8c27c Added very basic support for Patterns
- Also added IJSVGUnit so that graidents know if to work out from the current bounds or not when creating the angle points
- Added IJSVGImage which is a wrapper around loading base64 encoded images
- Added IJSVGPattern which is based on IJSVGGroup and will draw a pattern inside a nodes clipped path
2016-05-29 11:30:07 +01:00

24 lines
469 B
Objective-C

//
// IJSVGPattern.m
// IJSVGExample
//
// Created by Curtis Hard on 27/05/2016.
// Copyright © 2016 Curtis Hard. All rights reserved.
//
#import "IJSVGPattern.h"
@implementation IJSVGPattern
- (void)drawInContextRef:(CGContextRef)context
path:(IJSVGPath *)path
{
// currently only support images
for(IJSVGImage * image in self.children) {
[image drawInContextRef:context
path:path];
}
}
@end