先上代码吧:-(NSMutableArray *)totalPathPoints{
if (_totalPathPoints == nil) {
_totalPathPoints = [NSMutableArray array];
}return _totalPathPoints;
}
// Only override drawRect: if you perform...
分类:
其他好文 时间:
2015-07-22 10:54:41
阅读次数:
104
可以实现全局批注,在任何界面都可以将批注笔调出来进行批注,支持更换笔的颜色,粗细,支持三个手指擦除,可以根据手指间距决定橡皮的面积,方便又省心!...
分类:
其他好文 时间:
2015-07-20 16:44:52
阅读次数:
161
看图“作业”,涂鸦一文。潮期无尽,红尘万里,到过天涯海角。天堂遗鸟总蹁跹,又何必、千年城堡。...
分类:
其他好文 时间:
2015-07-18 18:36:52
阅读次数:
131
[objc] view
plaincopyprint?
@interface UIView (RectCorner)
@end
@implementation UIView (RectCorner)
- (void)setCornerOnTop {
UIBezierPath *maskPath;
maskP...
分类:
其他好文 时间:
2015-07-07 09:38:37
阅读次数:
252
玩法概述———— Kingdom Rush,即皇家守卫军,IronHide出的一款塔防游戏。其涂鸦的风格、独特的英雄和士兵系统、较为庞大的战斗场面,在塔防游戏中独树一帜,取得了巨大的成功。 在这里,基于Kingdom Rush的核心玩法,推拟出游戏所需的核心战斗数值(包括战斗内成长数值)。 首先,需...
分类:
其他好文 时间:
2015-07-04 23:29:33
阅读次数:
204
这段时间一直在探索一些新奇的事物,博客一直没有更新。今天我们来学一些好玩的东西。比如利用facebook的pop,做一个会动的贝塞尔曲线。废话不多说,来看看吧。
#import "Beisaier.h"
#import
@interface Beisaier ()
{
CAShapeLayer *layer1;
UIBezierPath *aPath1;
}
@end
...
分类:
移动开发 时间:
2015-07-03 14:12:22
阅读次数:
280
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
UIBezierPath *path = [UI...
分类:
移动开发 时间:
2015-07-01 22:19:53
阅读次数:
259
1.纯CSS3实现自定义Tooltip边框 涂鸦风格这是一款用纯CSS3打造的自定义Tooltip边框的应用,之前我们讨论过如何用CSS3来实现不同样式的Tooltip,今天的这款Tooltip却可以用CSS3来自定义边框,边框呈涂鸦风格。用CSS3实现自定义边框的好处是可以自适应边框内部的文字数量...
分类:
Web程序 时间:
2015-07-01 11:36:03
阅读次数:
222
UIBezierPath这个类呢主要用于绘图。 使用UIBezierPath的使用相当简单,分为三步:
* 创建path
* 添加路径到path
* 将path绘制出来
例如我们来画条线:
“
objc
// 创建path
UIBezierPath *path = [UIBezierPath bezierPath];// 添加路径[1条点(100,100)到点(20...
分类:
其他好文 时间:
2015-06-24 12:57:20
阅读次数:
126
<!DOCTYPEHTML>
<html>
<body>
<svgxmlns="http://www.w3.org/2000/svg"version="1.1"width="1000px"height="800px">
<rect
x="20"
y="20"
rx="20"
ry="20"
width="250"
height="100"
style="fill:red;stroke:black;stroke-width:5;fill-o..
分类:
Web程序 时间:
2015-06-19 21:45:07
阅读次数:
288