> On 21 Oct 2015, at 10:28, Mark Waddingham <[email protected]> wrote:
>
> It is very similar to CoreGraphics (but actually has a number of features
> beyond which CG offers). e.g.
> MCGContextCreate(-> myContext)
> MCGContextSetRGBAFillColor(myContext, 1, 0, 0, 0.5)
> MCGContextAddRectangle(myContext, [0, 0, 400, 400])
> MCGContextFill(myContext)
Does this not do it? or similar?
-(void) drawRect: (CGRect) rect
{
CGContextRef context = UIGraphicsGetCurrentContext();
UIColor * redColor = [UIColor colorWithRed:1.0 green:0.0 blue:0.0
alpha:1.0];
CGContextSetFillColorWithColor(context, redColor.CGColor);
CGContextFillRect(context, self.bounds);
}
All the best
Terry
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode