English · 한국어 . Français . Deutsch . 简体中文 . 繁體中文 . 繁體粤语
而家搵緊人幫手翻譯呢個 README。
支援簡單嘅生成器。 不過,我哋建議睇埋 README 嚟做更詳細嘅調整。
有咩諗法都可以提交去 -> Idea-Issue 或者 PR
https://capsule-render.vercel.app/api?
喺呢個 URL 後面加查詢參數就得。好似咁:
Markdown 格式:

HTML 格式:
<img src="https://capsule-render.vercel.app/api?type=wave&color=auto&height=300§ion=header&text=capsule%20render&fontSize=90" />
類型數據用嚟改背景圖像。
喺 URL 度加 &type=

改背景圖像!
&color=auto
:預設隨機顏色。列表喺呢度&color=timeAuto
:預設隨機顏色,但係由時間決定&color=random
:完全隨機嘅顏色。我都唔知會顯示咩顏色&color=gradient
:預設隨機漸變。列表喺呢度&color=timeGradient
:預設隨機漸變,但係由時間決定&color=_hexcode
:預設(#B897FF)&color=_custom_gradient
:自定義漸變。如果寫成&color=0:EEFF00,100:a82da8
,佢會轉換做 { 0%: 'EEFF00', 100%: 'a82da8' }。(例如 示範)
如果用 auto
模式,唔使改 fontColor
。
auto
都會自動改字體顏色。

如果用靜態顏色,唔好寫 '#'
幾時用
timeAuto
同timeGradient
?同時用
header
同footer
區域嘅時候。
你可以自定義將會隨機出現嘅顏色列表,淨係適用於 &color=auto
同 &color=gradient
。
喺 URL 度加 &customColorList=
。
揀你想要嘅顏色模式並記住佢嘅 idx
值。
例如,如果 idx 值係 0、2 同 3,就寫:&customColorList=0,2,3
如果你想畀 idx=2
出現多次,可以重複寫。(例如 &customColorList=0,2,2,2,2,3
)

你可以用 theme=
嚟用指定嘅組合。
就算用咗 color
同 fontColor
,主題都有最高優先級。
喺 pallete_theme.json 睇可用主題列表。

我而家慢慢加緊嚟自 Link:theme 嘅組合。
區域數據用嚟反轉背景圖像。
§ion=header
:(預設)§ion=footer
喺 URL 度加 §ion=

左右反轉圖像。(同時反轉顏色)
&reversal=false
:(預設)&reversal=true

改圖像大細。預設值係 120。
喺 URL 度加 &height=

唔好寫
px
喺圖像上面輸入文字。
加 &text=
。

你唔可以用某啲特殊字符。好似 '#'、'&'、'/' 咁...
呢啲會令 API 混亂
建議淨係用
%20
(空格) 同-nl-
(換行)
喺圖像上面輸入描述。
加 &desc=
。

你唔可以用某啲特殊字符。好似 '#'、'&'、'/' 咁...
呢啲會令 API 混亂
建議淨係用
%20
(空格)
文字嘅背景。
加 &textBg=true
嚟啟用。
如果你想增加背景大細, 喺文字值之間加
%20
。 因為背景大細取決於英文文字嘅長度。(%20 表示空格)

令文字動態化。
如果你想用,加 &animation=
。
fadeIn
:淡入 1.2 秒scaleIn
:縮放進入 0.8 秒blink
:閃爍 0.6 秒blinking
:閃爍 1.6 秒twinkling
:閃爍 4 秒

改文字顏色。預設值係 000000。
值應該係去咗 '#' 嘅十六進制代碼
喺 Text 查詢後面加 &fontColor=

改文字字體大細。預設值係 70。
喺 Text 查詢後面加 &fontSize=

唔好寫
px
改文字水平對齊(x)。寫0~100之間嘅數字
&fontAlign=
:預設值係 50。圖像中心
如果喺
&text=
度有多行(-nl-
),提供多個&fontAlign=
會對每行單獨應用唔同嘅水平對齊。

改文字垂直對齊(y)。寫0~100之間嘅數字
&fontAlignY=
:單行預設值係 50(圖像中心)。對於多行(由 -nl-
分隔),預設值會計算嚟令行堆疊喺一齊並居中。
如果喺
&text=
度有多行(-nl-
),提供多個&fontAlignY=
會對每行單獨應用唔同嘅垂直對齊。

改描述字體大細。預設值係 20。
喺 desc 查詢後面加 &descSize=

唔好寫
px
改描述水平對齊(x)。寫0~100之間嘅數字
&descAlign=
:預設值係 50。圖像中心

改文字垂直對齊(y)。寫0~100之間嘅數字
&descAlignY=
:預設值係 60。圖像中心

用 &rotate=
嚟旋轉文字。
你都可以用負數。
建議數字範圍:☞
0 ~ 360
,0 ~ -360
。

改文字描邊。
喺查詢後面加 &stroke=
值應該係去咗 '#' 嘅十六進制代碼

建議同
strokeWidth
一齊用。單獨使用嘅時候,strokeWidth 預設係 1。
改文字描邊闊度。
喺描邊查詢後面加 &strokeWidth=
值必須大過或者等於 0。

建議同
stroke
一齊用。單獨使用嘅時候,stroke 預設係 'B897FF'。