随鼠飘雪

目标

演示鼠标交互使用
在viewer 中移动鼠标后,看到雪花以鼠标为中心喷洒
参考了 《Addison Wesley - Learning Quartz Composer Jul.2012》

步骤

  1. 打开QC ,新建Blank 。
  2. 从Library 拖入 "image with string" 并设置string 为"*"。
  3. 从Library 拖入 "particle system" 。
  4. 从Library 拖入 "Mouse" ,mouse (x,y)连接到 particle system (x, y )
  5. 连接 image with string image 到 particle system image
  6. 完成!在viewer 窗口查看

下载

设置如图 结果如图