使用CCRibbon画线
来源:互联网 发布:kc免费网络电话软件 编辑:程序博客网 时间:2024/05/25 20:00
CCRibbon is used to create line drawing effects using the image you specify for drawing paths or aimlines or trajectories.
First you create CCRibbon with width , image , length , color and fade parameters
ccColor4B myColor = ccc4(255, 255, 255, 150);
CCRibbon *ribbon = [CCRibbon ribbonWithWidth:10 image:@"green.png" length:10.0 color:myColor fade:0.7f];
Then we add it as a child:
[self addChild:ribbon z:8];
If you run the application now you will not see anything because you didn’t add any points yet to the CCRibbon so lets add 2 points
[ribbon addPointAt:ccp(10,10) width:10];
[ribbon addPointAt:ccp(15,15) width:10];
You cannot remove individual points but you can remove the CCRibbon from its parent
[self removeChild:ribbon cleanup:YES];
Now Run and watch the results
- 使用CCRibbon画线
- CCParallaxNode CCProgressTimer CCRibbon CCMotionStreak
- 画线算法(使用加减法)
- html5 使用canvas画线
- iOS 使用UIBezierPath画线
- Echarts 使用 markLine 画线
- 使用UIBezierPath平滑的画线
- 使用 java.awt.Graphics2D 画线
- onDraw 中使用canvas画线
- unity使用GL库画线
- unity使用line renderer画线
- 使用UIBezierPath平滑的画线
- 使用UISegmentControl改变画线颜色
- unity3d 使用GL 方式画线
- 使用UIImageView的画线方法
- 使用python pylab库 画线
- 使用python pylab库 画线
- unity 使用GL画线段
- 理解三层
- cocos2d画图
- linux学习笔记
- linux 双网卡绑定(bonding)实现负载均衡或故障转移
- ASP.NET温故而知新学习系列之深度剖析ASP.NET架构—HttpHandler(三)
- 使用CCRibbon画线
- 第5章 加密与认证技术
- ASP.NET温故而知新学习系列之ASP.NET中的多线程编程—1-线程机制
- Tomcat admin模块的配置
- Oracle执行计划详解
- 2012年工作计划
- java serializable
- 浅谈java中的volatile
- 菜鸟必备:个人电脑端口完全解析