English · 한국어 . Français . Deutsch . 简体中文 . 繁體中文 . 繁體粤语
正在尋找人員協助翻譯此 README。
支援簡單的生成器。 但是,我們建議閱讀 README 以進行更詳細的調整。
- 如何使用
- 類型
- 顏色
- 自定義顏色列表
- 區域
- 反轉
- 高度
- 文字
- 描述
- 文字背景
- 文字動畫
- 字體顏色
- 字體大小
- 字體對齊 - X
- 字體對齊 - Y
- 描述大小
- 描述對齊 - X
- 描述對齊 - Y
- 旋轉
- 演示
任何想法可以提交到 -> 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'。