Skip to content

Instantly share code, notes, and snippets.

View sdkfz181tiger's full-sized avatar
👾

Kajiru sdkfz181tiger

👾
View GitHub Profile
@sdkfz181tiger
sdkfz181tiger / main01.js
Last active June 17, 2024 00:10
疑似3Dであっさりアウトラン_チュートリアル版
"use strict"
// URL: https://openprocessing.org/sketch/957775
const WHITE = "#ffffff";
const BLACK = "#000000";
const SCREEN = 100; // スクリーンまでの距離
const points = [];// 3D空間の座標を格納する配列
@sdkfz181tiger
sdkfz181tiger / main01.js
Last active June 10, 2024 01:27
経路探索(p5js)_深度優先/幅優先/A*アルゴリズム
"use strict"
const WHITE = "#eeeeee";
const BLACK = "#333333";
const GRAY = "#777777";
const RED = "#ff6624";
const GREEN = "#66ff24";
const BLUE = "#2466ff";
const ROWS = 23;// 迷路の大きさ(行数)
@sdkfz181tiger
sdkfz181tiger / test01.sh
Last active June 12, 2024 03:26
シェルスクリプトあっさり7選!!
#!/bin/bash
# シェルスクリプトの実行と引数
# $bash test.sh
# $bash test.sh hoge
# $bash test.sh hoge fuga
# $bash test.sh hoge fuga piyo
echo "Running $0"
echo "arg1: $1"
@sdkfz181tiger
sdkfz181tiger / main.js
Last active May 31, 2024 15:24
迷路03_壁伸ばし法(p5.js)
"use strict"
// URL: https://openprocessing.org/sketch/2288416
const WHITE = "#eeeeee";
const BLACK = "#333333";
const RED = "#dd6624";
const ROWS = 13;// 迷路の大きさ(行数)
const COLS = 13;// 迷路の大きさ(列数)
@sdkfz181tiger
sdkfz181tiger / main.js
Last active May 31, 2024 12:03
迷路02_穴掘り法(p5.js)
"use strict"
// URL: https://openprocessing.org/sketch/2288405
const WHITE = "#eeeeee";
const BLACK = "#333333";
const RED = "#dd6624";
const ROWS = 13;// 迷路の大きさ(行数)
const COLS = 13;// 迷路の大きさ(列数)
@sdkfz181tiger
sdkfz181tiger / main.js
Last active June 10, 2024 01:20
迷路01_壁倒し法(p5.js)
"use strict"
// URL: https://openprocessing.org/sketch/2288369
const WHITE = "#eeeeee";
const BLACK = "#333333";
const RED = "#dd6624";
const ROWS = 13;// 迷路の大きさ(行数)
const COLS = 13;// 迷路の大きさ(列数)
@sdkfz181tiger
sdkfz181tiger / main.js
Last active May 28, 2024 09:54
フラクタル04_シェルピンスキーの曲線(L-System)
"use strict"
// URL: https://openprocessing.org/sketch/2283736
const WHITE = "#eeeeee";
const BLACK = "#2f6690";
function setup(){
createCanvas(windowWidth, windowHeight);
angleMode(DEGREES);
@sdkfz181tiger
sdkfz181tiger / main.js
Last active May 28, 2024 09:53
フラクタル03_シェルピンスキーのカーペット
"use strict"
// URL: https://openprocessing.org/sketch/2281136
const WHITE = "#eeeeee";
const BLACK = "#2f6690";
function setup(){
createCanvas(windowWidth, windowHeight);
angleMode(DEGREES);
@sdkfz181tiger
sdkfz181tiger / main.js
Last active May 28, 2024 09:53
フラクタル02_シェルピンスキーのギャスケット
"use strict"
// URL: https://openprocessing.org/sketch/2279929
const WHITE = "#eeeeee";
const BLACK = "#2f6690";
function setup(){
createCanvas(windowWidth, windowHeight);
angleMode(DEGREES);
@sdkfz181tiger
sdkfz181tiger / main.js
Last active May 28, 2024 09:53
フラクタル01_Lévy C curve
"use strict"
// URL: https://openprocessing.org/sketch/2278937
const WHITE = "#eeeeee";
const BLACK = "#2f6690";
function setup(){
createCanvas(windowWidth, windowHeight);
angleMode(DEGREES); noLoop();