Name | FloatDict浮点型字典类 | ||||||||||||||||||||||||||||||||||||
Examples | FloatDict inventory; void setup() { size(200, 200); inventory = new FloatDict(); inventory.set(“coffee”,108.6); inventory.set(“flour”,5.8); inventory.set(“tea”,8.2); println(inventory); noLoop(); fill(0); textAlign(CENTER); } void draw() { float weight = inventory.get(“coffee”); text(weight, width/2, height/2); }
|
||||||||||||||||||||||||||||||||||||
Description 描述 |
A simple class to use a String as a lookup for an float value. String “keys” are associated with floating-point values. 使用字符串作为浮点值查找的简单类。字符串 “键” 与 floating-point 值关联。 |
||||||||||||||||||||||||||||||||||||
Methods |
|
||||||||||||||||||||||||||||||||||||
Constructor 语法 |
FloatDict() FloatDict(pairs) |
||||||||||||||||||||||||||||||||||||
Related 相关 |
IntDict StringDict |
Updated on April 30, 2017 02:33:19pm EDT
Processing is an open proje
- 本文固定链接: http://iprocessing.cn/2017/07/17/floatdict浮点型字典类/
- 转载请注明: 卡萨布兰卡 于 Processing编程艺术 发表