textSize()
例子
background(0);
fill(255);
textSize(26);
text(“WORD”, 10, 50);
textSize(14);
text(“WORD”, 10, 70);
描述
设置当前字体大小。这个字体大小将会对text() 函数后面的所有函数调用起作用。字体大小是通过像素来测量的。
语法
textSize(size)
参数
size 浮点数:以像素为单位的字符的大小
返回值
void
相关
loadFont()
text()
textFont()
- 本文固定链接: http://iprocessing.cn/2017/07/15/textsize文本尺寸/
- 转载请注明: 卡萨布兰卡 于 Processing编程艺术 发表