[WordPress] 外掛分享: Wp Game Of Life

首頁外掛目錄 › Wp Game Of Life
10+
安裝啟用
尚無評分
4385 天前
最後更新
問題解決
WordPress 3.6+ v0.0.1 上架:2014-03-16

內容簡介

這是使用HTML5畫布的生命遊戲模擬,若想要更多資訊,請參閱生命遊戲維基頁面。

您也可以查看演示。

短碼
[gol ID='canvas_id' width='width' cells='cells' background='background' cell_active_color='cell_active_color' cell_inactive_color='cell_inactive_color' cell_transition_color='cell_transition_color']

在您的文章中嵌入一個生命遊戲動畫。參數:

canvas_id(選用)生成畫布的ID。 預設值:WP_GAME_OF_LIFE
width(選用)生成畫布的預期寬度。 不會超出視口。 預設值:1000
cells(選用)要繪製的一行中的單元格數。 這會指數級影響效能。 請謹慎使用。 預設值:125
background(選用)生成畫布的背景色。 預設值:#aaa
cell_active_color(選用)活動單元格的顏色。 預設值:#fff
cell_inactive_color(選用)非活動單元格的顏色。 預設值:#000
cell_transition_color(選用)剛剛被禁用的細胞的顏色。 必須是rgb格式。 預設值:rgb(65,180,255)

貢獻!

如果您對新附加元件有建議,請在Twitter上隨時與我聯繫。 或者,您可以從Gihub上複製該外掛。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Wp Game Of Life」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

A game of life simulation using HTML5 canvas. For more information visit the Game of Life Wiki Page.
You can also check out the demo.
Shortcodes
[gol ID='canvas_id' width='width' cells='cells' background='background' cell_active_color='cell_active_color' cell_inactive_color='cell_inactive_color' cell_transition_color='cell_transition_color']

Embeds a game of life animation in your post. Parameters:

canvas_id (optional) The id of the generated canvas. Default: WP_GAME_OF_LIFE
width (optional) The desired width of the generated canvas. Will not expand beyond the viewport. Default: 1000
cells (optional) The number of cells in one row to draw. This affects performance exponantioly. Use with caution. Default: 125
background (optional) The background color of the generated canvas. Default: #aaa
cell_active_color (optional) The color of active cells. Default: #fff
cell_inactive_color (optional) The color of inactive cells. Default: #000
cell_transition_color (optional) The color of cells that have just been deactivated. Must be rgb format. Default: rgb(65,180,255)

Contribute!
If you have suggestions for a new add-on, feel free to email me on Twitter. Alternatively, you can fork the plugin from Gihub

延伸相關外掛

文章
Filter
Apply Filters
Mastodon