當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Processing IntList.mult()用法及代碼示例

Processing, 類IntList中的mult()用法介紹。

用法

  • .mult(index, amount)

返回

  • void

說明

乘以一個值。

例子

IntList inventory;

void setup() {
  size(200, 200);
  inventory = new IntList();
  inventory.append(84);
  inventory.append(15);
  inventory.append(102);
  println(inventory);
  inventory.mult(0, 2);
  println(inventory);
}

相關用法


注:本文由純淨天空篩選整理自processing.org大神的英文原創作品 IntList.mult()。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。