flet widget alignment
maths for pitch change
turn image into shaded image
(啱啱試完)
點解用: image as plane (object)
因為只有 object (on 'laout' interface)先用到 toon shader(因為有光暗 參數, 2D image冇光暗參數)
換句話講,能夠將 2D image (e.g. 你影嘅相) 變成 plane object,
咁你就可以 喺 該 plane object 度 變卡通。
另外有個 kuwahara node (即係, 喺蒙咗嘅 影像上 保留 邊框, retain edges while blurring)
用途係,你將真樣 變 卡通 時候,你會跟以下steps:
blur 咗 張相 或者 減少 張相 嘅顏色數目
然後先 綑邊
想像吓 卡通畫面 嘅 顏色 係 少過真實畫面,
而且 卡通人物 唔會好似 真人咁多 紋理 (texture)
真人 轉 卡通時候,既要 減少紋理,顏色,
又要 保留 人物 輪廓 (shape, edge)
所以就要 用 kuwahara (有幾隻,複雜數學呢度唔探討)
保留人物邊框
flask with sqlite3
就係呢個 flask app 嘅 結構圖:
a - flask app folder, 叫 'fkapp' (名你自己定義)
a1 - folder 叫 'templates' -擺晒你啲 html page
-- a1.0 -> base.html (template,同常會整)
-- a1.1 -> index.html (主板,一定要有)
-- a1.2 -> other.html (其他版面, 視乎你想整幾多)
live preview on Sublime Text 4
htmx setup for beginner
#jinja2 to refresh html after updating the flask python file WITHOUT needing to reload the html page manually