このページでは「P5.js 日本語リファレンス」 の unhex 関数を説明します。
unhex()
説明文
16進数の文字列表現を同等の整数値に変換します。 16進表記の文字列の配列が渡されると、同じ長さの整数の配列が返されます。
構文
unhex(n)
unhex(ns)
パラメタ
n
String:変換する値ns
Array:変換する値
戻り値
Number:16進値の整数表現
例1
print(unhex('A')); // 10
print(unhex('FF')); // 255
print(unhex(['FF', 'AA', '00'])); // [255, 170, 0]
著作権
p5.js was created by Lauren McCarthy and is developed by a community of collaborators, with support from the Processing Foundation and NYU ITP. Identity and graphic design by Jerel Johnson.
ライセンス
Creative Commons(CC BY-NC-SA 4.0) に従います。