Example 07 · Bring another picture engine範例 07 · 接上別的畫面引擎

Firework festival花火大會

Close a finger pinch and a firework launches from that hand (2021).2021 年的作品。手指一捏合,煙火就從那隻手的位置升空。

Try these three things試試這三件事

  1. Turn on 🖐 hands and close a pinch: a firework launches at that hand, and the pinch distance sets the shell size.
  2. No camera? Press a piano key: it launches one too.
  3. Drag Richness or Gravity in the params panel to change the shells.
  1. 打開 🖐 hands,捏合手指:煙火從那隻手的位置升空,捏合的距離決定煙火大小。
  2. 沒有鏡頭?按一個鋼琴鍵,一樣會放煙火。
  3. 在參數面板拖動 Richness 或 Gravity,改變煙火的樣子。

Needs: Camera (hands).需要:鏡頭(手)。 No hardware? Use On-screen piano.沒有硬體?用螢幕鋼琴。

Read these lines讀這幾行

  • main.js:76–78 A pinch closing is an edge: the launch happens at that hand.捏合是一個「邊緣」:煙火就在那隻手的位置發射。
  • main.js:79–80 The piano also launches, so the work needs no camera.鋼琴也能放煙火,所以作品不需要鏡頭。

In the docs文件裡: Body and hands身體與手

Next: 14 Timeline →下一個:14 時間軸 → All examples所有範例

Artwork credit: Che-Yu Wu, 210807 Firework 花火大會, 2021. Artwork © Che-Yu Wu, used here as a demo, all rights reserved. The framework is MIT.作品版權:吳哲宇,210807 Firework 花火大會,2021。作品 © 吳哲宇,在這裡當作示範,版權所有。框架採 MIT 授權。