processing to p5.js converter
Game Introduction
◆注意点◆ Caution (English version is down below) ※変換する過程でフォーマットが乱れる場合があります。 ※一部対応していないコードがあります。 ※コメントアウトに関しては ; { } のいずれかが末尾に来ていれば変換後も正常に残ります。 ※自分の作ったものだと四割程度しかそのままで実行できなかったので精度は期待しないでください。 ※Due to the process of converting code, the format might get messed. ※Not all of the codes are supported. ※About the comment out, if it includes ; or { or } at the end, the text will remain normally after conversion.
How To Play
その名の通り、プロセッシングで書いたコードをp5.jsにだいたい変換します。 変換が終わったら中を見るを押して、リストを右クリック➡書き出しを押すことでまとめて保存できます。 ◆変換するもの◆ Things to convert ・void () { ➡ function () { ・Size( , ); ➡ let canvas = createCanvas( , ); ・int、float、String ➡ let ・let ; ➡ let =0; ・ function (int , float , String ) { ➡ function ( , , ,) { ・println( ); ➡ console.log( ); ・ArrayList< > = new ArrayList< >(); ➡ let = []; ・class { ➡ class { constructor{ } ・ class { constructor { int ; float ; String ; } ➡ class { constructor { this. =0; this. =0; this. =0; } ・.size() ➡ .length ・.add( ); ➡ .push( ); ・.remove( ); ➡ .splice( , 1); ・.length(); ➡ .length; ・.clear(); ➡ .splice (0 , .length); ・test t = new test(); ➡ let t = new test(); ・test t = testlist.get( ); ➡ let t = testlist[ ]; ・ if(keyCode == LEFT、RIGHT、UP、DOWN) { ➡ if(key == "ArrowLeft"、"ArrowRight"、"ArrowUp"、 "ArrowDown") { ・ int、float、String[] test = new int、float、String[] {1,2,3}; ➡ let test = [1,2,3]; ・PVector test = new PVector( , ); ➡ test = createVector( , ); ・test = createPVector( , ); function setup(){ let canvas = createCanvas( , ); } ➡ function setup(){ let canvas = createCanvas( , ); test = createPVector( , ); } ・pushMatrix(); ➡ push(); ・popMatrix(); ➡ pop(); ~その他続々サポート予定~ ◆既存のサイト版との違い◆ ・リストの変換に特化 ・void setup、drawなくとも変換可能 ・ローカルファイルへの保存が容易 ◆アップデート履歴◆ 21/10/06{ ・初版公開 } 21/10/07 { ・不具合修正 ・機能追加 } 21/10/09 { ・不具合修正 ・機能追加 } 22/02/10{ ・不具合修正 ・機能追加 } 22/03/21{ ・不必要な変換機能の削除 } 22/05/07{ ・不具合修正 ・機能追加 } 22/05/11{ ・機能追加 }
Author
reiwa_people
Category
Game Information
Game Popularity
124 views
Collection Count
1 favorites





