This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Easing { | |
static easeInSine(x) { | |
return 1 - Math.cos((x * Math.PI) / 2); | |
} | |
static easeOutSine(x) { | |
return Math.sin((x * Math.PI) / 2); | |
} | |
static easeInOutSine(x) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// reference: Joshua Davis's awesome lerpColor rhythm technique!! | |
// https://pastebin.com/0t4CwtpN | |
let numAssets = 15; | |
let paramsClrs = []; | |
let paramsClrsProbability; | |
let paramsClrsMax = [4000, 1000, 100]; | |
let clrs = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://twitter.com/ru_sack/status/775098568298278912 | |
// x=(1+sin(1πu)sin(1πv))sin(4πv) | |
// y=(1+sin(1πu)sin(1πv))cos(4πv) | |
// z=cos(1πu)sin(1πv)+4v-2 | |
// 0≦u≦1 | |
// 0≦v≦1 | |
// #数学デッサン | |
function setup() { | |
createCanvas(800, 800, WEBGL); | |
ortho(-width / 2, width / 2, -height / 2, height / 2, -5000, 5000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// color scheme reference : https://www.schemecolor.com/halloween-themed-color-schemes.php | |
// use in p5.js | |
// let palette = random(halloween_color_scheme).colors; | |
const halloween_color_scheme = [ | |
{ | |
name: "all-hallows-eve", | |
colors: ["#7A14A6", "#141A8C", "#324024", "#F27405", "#732817"], | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const twitter_pillow_word_jp = ["あまり大きな声で言えないのですが", | |
"あまり知られれないのですが", | |
"ありえない", | |
"あんまり言いたくないけど", | |
"いい加減にして欲しい", | |
"いい年してお恥ずかしいのですが", | |
"悪用厳禁なのですが", | |
"安心してください", | |
"言いたくない過去を言うと", | |
"言わせてください", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let url = [ | |
//0: "Kara Kusa" | |
"202c39-283845-b8b08d-f2d492-f29559", | |
//1: "Wizard" | |
"1f2041-4b3f72-ffc857-119da4-19647e", | |
//2: "Stocked and Ready" | |
"2f4858-33658a-86bbd8-f6ae2d-f26419", | |
//3: "Faded 80s" | |
"ffac81-ff928b-fec3a6-efe9ae-cdeac0", | |
//4: "Indian Ocean" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
createCanvas(800, 800); | |
angleMode(DEGREES); | |
} | |
function draw() { | |
background((95 / 100) * 255); | |
push(); | |
translate(width / 2, height / 2); | |
let ratio = 0.01; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Reference: | |
//https://www.expo2025.or.jp/overview/design_system/#inochi | |
const EXPO2025DesignSystem = [ | |
{ | |
name: "Inochi", | |
colors: ["#E60012", "#D2D7DA", "#0068B7", "#FFFFFF"], | |
}, | |
{ | |
name: "Umi", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I am attesting that this GitHub handle takawo is linked to the Tezos account tz2FY2Yms9aefv4SyLVgpCRecX8ZzKas1A6P for tzprofiles | |
sig:spsig1HLpJ47ARPa8cHktDjZVBWaUySqozd1xTq2caxJGtz32AtizB4TsCVfACgz6E7tThmc3MHXLENbH1SwG5oEmzyKPTJ5wcz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
createCanvas(800, 400); | |
angleMode(DEGREES); | |
} | |
function draw() { | |
background(220); | |
let d = width / 4; | |
textAlign(CENTER,CENTER); |
NewerOlder