LoginSignup
0
0

More than 3 years have passed since last update.

P5.js 日本語リファレンス(char)

Last updated at Posted at 2020-08-23

このページでは「P5.js 日本語リファレンス」 の char 関数を説明します。

char()

説明文

数値または文字列を対応する単一文字の文字列表現に変換します。文字列パラメータが指定されている場合、最初に整数として変換され、次に1文字の文字列に変換されます。数値または文字列値の配列が渡されると、同じ長さの単一文字の文字列の配列が返されます。

構文

char(n)

char(ns)

パラメタ

  • n
    String | Number:変換する値

  • ns
    Array:変換する配列

戻り値

String:値の文字列表現

例1

print(char(65)); //「A」
print(char('65 ')); //「A」
print(char([65, 66, 67])); // ["A",  "B",  "C"]
print(join(char([65, 66, 67]),  '')); // 「ABC」

著作権

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) に従います。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0