This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="zh_TW"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta author="CIOSAI_tw"> | |
<title>day 7</title> | |
<script> | |
//genuary 2025, day 7, "Use software that is not intended to create art or images." | |
window.onload = () => { |
This file contains hidden or 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
float box(vec2 p){ | |
vec2 q = abs(p); | |
return max(q.x,q.y); | |
} | |
// /.-\ | |
// | | | |
// \ / <- center is here, it's a bit top-heavy | |
// \/ | |
float heart(vec2 p){ |
This file contains hidden or 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
# can be ran on python REPL | |
text = "ABC" | |
",".join(list(map(str,map(ord,text)))) | |
# returns "65,66,67" |
This file contains hidden or 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
# can be ran on python REPL | |
# has to be NUMBER,NUMBER,NUMBER... with no space | |
# or modify the split(",") idc | |
# A B C | |
text = "65,66,67" | |
"".join(list(map(chr,map(int,text.split(","))))) |
This file contains hidden or 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
// by CIOSAI_tw at 26 OCT 2024 | |
// runs on bonzo comp (wrighter) | |
// capture : https://imgur.com/E707RnL | |
#version 420 core | |
uniform float fGlobalTime; // in seconds | |
uniform vec2 v2Resolution; // viewport resolution (in pixels) | |
uniform float fFrameTime; // duration of the last frame, in seconds |
This file contains hidden or 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
#version 420 core | |
// code adapted from wrighter https://gist.github.com/wrightwriter/53395a7a50f38eb5079cce80306360e3 | |
// runs on bonzomatic https://github.com/wrightwriter/Bonzomatic-Compute | |
// inspired by nusan https://demozoo.org/sceners/88839/ | |
uniform float fGlobalTime; // in seconds | |
uniform vec2 v2Resolution; // viewport resolution (in pixels) | |
uniform float fFrameTime; // duration of the last frame, in seconds |
This file contains hidden or 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
# id 有重複者代表有支線 | |
# 支線交匯站如 北投 在主線跟支線重複出現 | |
# 轉乘站如 中山 也會重複出現 | |
raw_data = { | |
"delimiter": " – ", | |
"lines": [ | |
{"id": "BR", "source": "動物園 – 木柵 – 萬芳社區 – 萬芳醫院 – 辛亥 – 麟光 – 六張犁 – 科技大樓 – 大安 – 忠孝復興 – 南京復興 – 中山國中 – 松山機場 – 大直 – 劍南路 – 西湖 – 港墘 – 文德 – 內湖 – 大湖公園 – 葫洲 – 東湖 – 南港軟體園區 – 南港展覽館"}, | |
{"id": "R", "source": "淡水 – 紅樹林 – 竹圍 – 關渡 – 忠義 – 復興崗 – 北投 – 奇岩 – 唭哩岸 – 石牌 – 明德 – 芝山 – 士林 – 劍潭 – 圓山 – 民權西路 – 雙連 – 中山 – 台北車站 – 台大醫院 – 中正紀念堂 – 東門 – 大安森林公園 – 大安 – 信義安和 – 台北101/世貿 – 象山"}, | |
{"id": "R", "source": "北投 – 新北投"}, | |
{"id": "G", "source": "松山 – 南京三民 – 台北小巨蛋 – 南京復興 – 松江南京 – 中山 – 北門 – 西門 – 小南門 – 中正紀念堂 – 古亭 – 台電大樓 – 公館 – 萬隆 – 景美 – 大坪林 – 七張 – 新店區公所 – 新店"}, |
This file contains hidden or 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
import kotlinx.coroutines.delay | |
import org.openrndr.animatable.Animatable | |
import org.openrndr.animatable.AnimationEvent | |
import org.openrndr.animatable.PropertyAnimationKey | |
import org.openrndr.animatable.easing.Easing | |
import org.openrndr.application | |
import org.openrndr.color.ColorRGBa | |
import org.openrndr.draw.* | |
import org.openrndr.extra.color.presets.DARK_BLUE | |
import org.openrndr.ffmpeg.ScreenRecorder |
This file contains hidden or 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
import kotlinx.coroutines.delay | |
import org.openrndr.animatable.Animatable | |
import org.openrndr.animatable.easing.Easing | |
import org.openrndr.application | |
import org.openrndr.color.ColorRGBa | |
import org.openrndr.draw.* | |
import org.openrndr.extra.color.presets.DARK_BLUE | |
import org.openrndr.ffmpeg.ScreenRecorder | |
import org.openrndr.math.mix | |
import org.openrndr.shape.Circle |
This file contains hidden or 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
shader_type canvas_item; | |
uniform sampler2D tex; | |
uniform float intensity; | |
uniform vec4 color : hint_color; | |
uniform float speed; | |
float sample(in vec2 st){ | |
return texture(tex, st).a; | |
} |
NewerOlder