SpriteBuilder全屏弹出菜单的特殊效果
2015-09-26 20:39
531 查看
但是等一下!这里可以有更多.对于全屏的弹出菜单,你可以在显示弹出全屏菜单时朦胧化背景的level视图.
通过修改SpriteBuilder中的color节点的Color属性(比如修改为black)和Opacity(透明)属性(比如修改为0.5),这很容易办到.
你也可以通过修改color节点的Blend src和Blend dst设置建立附加效果.
尝试将Blend src和Blend dst分别设置为One和One - Dst Color从而得到”虚”颜色.
或者分别设置Blend src和Blend dst分别为One - Dst和Src Alpha Saturate,同时将透明属性设置为1,color节点的Color属性设置为White.这可以创建一种photo-negative效果,如下图:
![](http://img.blog.csdn.net/20150926203601369)
注意:缩写src和dst分别代表source和destination.这些属性涉及到OpenGL混合模式(OpenGL blend modes),将会影响src和dst互相重叠像素的颜色如何混合到一起显示出来.
通过修改SpriteBuilder中的color节点的Color属性(比如修改为black)和Opacity(透明)属性(比如修改为0.5),这很容易办到.
你也可以通过修改color节点的Blend src和Blend dst设置建立附加效果.
尝试将Blend src和Blend dst分别设置为One和One - Dst Color从而得到”虚”颜色.
或者分别设置Blend src和Blend dst分别为One - Dst和Src Alpha Saturate,同时将透明属性设置为1,color节点的Color属性设置为White.这可以创建一种photo-negative效果,如下图:
注意:缩写src和dst分别代表source和destination.这些属性涉及到OpenGL混合模式(OpenGL blend modes),将会影响src和dst互相重叠像素的颜色如何混合到一起显示出来.
相关文章推荐
- 【Android UI设计和开发】动画(Animation)详细说明(一)
- iOS开发之UITableView(二)懒加载优化
- SpriteBuilder弹出菜单层造成卡顿的解决办法
- SpriteBuilder弹出菜单层造成卡顿的解决办法
- SpriteBuilder弹出菜单层造成卡顿的解决办法
- 使用initWithFrame生成的UIView,backgroundColor默认的opaque是0
- 如何更改UISearchBar取消的字体颜色
- 快速排序(Quicksort)
- 关于$test$plusargs和$value$plusargs的小结
- Java学习笔记--PriorityQueue(优先队列)(堆)
- 【UIKit-125-9】#import <UIKit/UIViewController.h>
- FastGUI
- 【UIKit-125-8】#import <UIKit/UIViewController.h>
- 第二次复习课--Android UI控件 (一)
- 【UIKit-125-7】#import <UIKit/UIViewController.h>
- 【UIKit-125-6】#import <UIKit/UIViewController.h>
- SpriteBuilder代码中弱引用(weak)需要注意的地方
- SpriteBuilder代码中弱引用(weak)需要注意的地方
- SpriteBuilder代码中弱引用(weak)需要注意的地方
- wift - 使用UIScreen类获取屏幕大小尺寸