【发布时间】:2013-12-18 14:36:37
【问题描述】:
我正在尝试制作一个非常有创意的 SKShapeNode(例如 0.25 像素)。似乎 lineWidth 为 1 是我能走的最小的,至少这就是它在屏幕上的样子,不管设置了小于 1 的值。
SKShapeNode *buttonOutline;
buttonOutline = [[SKShapeNode alloc] init];
CGMutablePathRef myPath = CGPathCreateMutable();
CGPathAddRoundedRect(myPath, NULL, CGRectMake(0, 0, 100, 30), 10, 10);
buttonOutline.path = myPath;
buttonOutline.strokeColor=[SKColor grayColor];
buttonOutline.lineWidth= 0.25;
buttonOutline.name = [NSString stringWithFormat:@"%@-buttonOutline", thisButtonName];
buttonOutline.position = CGPointMake(thisXPos,thisYPod);
buttonOutline.alpha = 1;
【问题讨论】:
标签: ios objective-c sprite-kit skshapenode