{"id":21802574,"url":"https://github.com/rayc2045/infinite-mondrian-art","last_synced_at":"2025-08-26T01:15:22.924Z","repository":{"id":140269943,"uuid":"448927327","full_name":"rayc2045/infinite-mondrian-art","owner":"rayc2045","description":"A JavaScript-powered generative art project inspired by Piet Mondrian, creating infinite unique compositions with bold lines and colors.","archived":false,"fork":false,"pushed_at":"2022-03-24T16:59:34.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-19T21:59:00.903Z","etag":null,"topics":["art","colors","css-grid","design","generative-art","grid-layout","mondrian","mondrian-algorithm","mondrian-art","mondrian-generator","mondrian-grid","petite-vue","vue","vuejs"],"latest_commit_sha":null,"homepage":"https://mondrian-art.netlify.app/","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rayc2045.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-17T14:30:30.000Z","updated_at":"2025-07-21T11:34:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"71842e7e-e4b7-4428-97e8-de0e4d2a0de9","html_url":"https://github.com/rayc2045/infinite-mondrian-art","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rayc2045/infinite-mondrian-art","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayc2045%2Finfinite-mondrian-art","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayc2045%2Finfinite-mondrian-art/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayc2045%2Finfinite-mondrian-art/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayc2045%2Finfinite-mondrian-art/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rayc2045","download_url":"https://codeload.github.com/rayc2045/infinite-mondrian-art/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayc2045%2Finfinite-mondrian-art/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272155786,"owners_count":24883101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["art","colors","css-grid","design","generative-art","grid-layout","mondrian","mondrian-algorithm","mondrian-art","mondrian-generator","mondrian-grid","petite-vue","vue","vuejs"],"created_at":"2024-11-27T11:29:32.077Z","updated_at":"2025-08-26T01:15:22.905Z","avatar_url":"https://github.com/rayc2045.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Infinite Mondrian Art｜無限生成的蒙德里安色塊\n\n![Cover](https://cdn.dribbble.com/users/3800131/screenshots/17315331/media/fba91e10d3851332edd6d1405c95ce1e.png)\n\n[\u003e Infinite Mondrian Art](https://mondrian-art.netlify.app/)\n\n### 簡介\n2022 年 1 月的一個假日，閒逛於誠品書局，看到了皮特·蒙德里安 (Piet Mondrian) 的周邊商品 – [蒙德里安變色馬克杯 (Mondrian Color Changing Mug)](https://www.eslite.com/product/1005140612574658) 和 [蒙德里安收納包](https://www.eslite.com/product/1005140612574657)，其簡潔優雅的藝術風格立刻攫住我的目光。經調查得知，身為印象派/幾何抽象畫派先驅的蒙德里安並不是一開始就形成這種使用井然方格搭配明亮色彩的藝術風格，早年的蒙德里安畫過寫實的人物和風景，後來逐漸把樹木的形態簡化成水平線與垂直線的抽象構成。崇拜直線美的他，認為透過直角可以靜觀萬物內部的安寧，於是在 1917 年，蒙德里安開始提倡自創的新造型主義風格，運用線條和色彩區塊實現自己創造普遍現象秩序與均衡美的理論，進而對現代建築、工藝和設計產生深遠的影響。似有共鳴的我將他的藝術風格與程式做聯想，最終作出了自己的第一個生成式藝術 (Generative Art) 創作。\n\n### 外觀與互動設計\n- 排版採手機優先 (mobile first)，並做到在任何尺寸裝置上，保持一致絕佳比例的響應式設計\n- 封鎖不必要的文字選取、拖拉和右鍵點擊操作\n- 使用偏灰的白色作為背景顏色以減少視覺上的不適感及增加畫面層次\n- 使用廣泛出現在藝術領域的 [Open Sans](https://fonts.google.com/specimen/Open+Sans) 作為 Loading/歡迎頁面字型\n- 使用淡入、淡出動畫銜接 Loading 頁面與色塊生成展示之間的切換\n- 從 HTML 保留色中採集 [六種顏色](https://color-names.netlify.app/?colors=+crimson+gold+royalblue+darkgray+black+white)，並依照：紅色 1：黃色 1：藍色 1：灰色 1：白色 10 的比例生成蒙德里安色塊\n- 色塊生成設計上，去除了黑色的邊框以及使用圓角增添親近感，另外也使用外陰影讓視線強化、集中於色塊本身\n- 設計頁面捲動達到總體高度 80% 時，輸出新的 12 個色塊，以此達到順暢的無限生成和捲動\n\n### 開發紀錄\n- 使用 [petite-vue](https://github.com/vuejs/petite-vue) 的模板語法將色塊資料視覺化\n- 使用 CSS Grid 作為色塊內元素的排版方式，並使用亂數達到 2x2 到 4x4 豐富變化的輸出形式\n- 每個色塊行 (row) 與列 (column) 的比例以小數點後 2 位的亂數組合來設定，進一步增強變化的豐富性\n- 使用顏色的排列順序和數量作為判斷重複的標準，達到無限次不重複的蒙德里安色塊生成\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayc2045%2Finfinite-mondrian-art","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frayc2045%2Finfinite-mondrian-art","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayc2045%2Finfinite-mondrian-art/lists"}