当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


Processing Delay.stop()用法及代码示例


Processing, 类Delay中的stop()用法介绍。

用法

  • .stop()

返回

  • void

说明

停止效果。

例子

import processing.sound.*;

AudioIn in;
Delay delay;

void setup() {
  size(640,360);
  background(255);
        
  // create the input stream
  in = new AudioIn(this, 0);
    
  // create a delay effect
  delay = new Delay(this);
    
  // start the input stream
  in.play();

  // Patch the delay
  delay.process(in, 5);
  delay.time(0.5);
}      

void draw() {
}

void mousePressed() {
  in.stop();
  delay.stop();
}

相关用法


注:本文由纯净天空筛选整理自processing.org大神的英文原创作品 Delay.stop()。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。