Repository navigation
VFG-78 見た目のパターン 11 種類の仕様と共通の部品 - #50
Draft
HyuuNyackman wants to merge 10 commits into
Draft
HyuuNyackman wants to merge 10 commits into
HyuuNyackman wants to merge 10 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
ネオン HUD のほかに、まったく違う系統の見た目とも比べるため、横の本編の冒頭の場面を 11 種類の見た目で 1 枚ずつ描いた。11 種類の仕様、パターンを差し替えて描く共通のしくみ、11 枚の静止画を入れる。
11 枚の一覧
docs/design/style-patterns/(1920×1080、256 色)。同じ場面 (架空の CLI「Kumo」の冒頭) を描いた。01-neon-hud.png02-terminal.png03-synthwave.png04-glitch.png05-blueprint.png06-keynote.png08-chalkboard.png09-pixel.png10-pop.png12-glass.png14-infographic.png変更内容
docs/design/style-patterns.md: 全パターンで同じ場面の内容、共通の決まり (配置・字幕の読みやすさ・フォント・アイコン・重さの段)、パターンごとの仕様 (色、文字、背景と質感、光や影、アイコン、字幕、動き、描画の重さ)、描き方の指示、追加のフォントの表、描く人の分け方の案、参考にした作例scripts/mock/: 場面の内容 (content.ts)、共通の部品 (common.tsx)、パターンの約束 (pattern.ts)、render.ts --pattern <id> --out <png>と--list。patterns/<番号>-<名前>.tsxを置くだけで 1 枚描ける (入口のファイルを描くときに作る)scripts/mock/fetch-font.ts: パターンのフォントを、場面の文字だけに絞って Google Fonts から入手し、OFL.txtと並べて置く (数十 KB)scripts/mock/patterns/)、使うフォント (場面の文字だけに絞ったもの、OFL の文と一緒にpatterns/fonts/)docs/design/style-patterns/01-neon-hud.pngに置いた。見た目の方針のモックの冒頭の場面とファイルが一致するHookScene) は、文字をcontent.tsから読むようにした (見た目は変えていない)動作確認
pnpm lint、pnpm typecheck、pnpm test、pnpm format:checkが通るpnpm tsx scripts/mock/render.ts --pattern 01-neon-hud --out docs/design/style-patterns/01-neon-hud.pngで描け、visual-style/landscape-hook.pngとバイト単位で一致fetch-font.tsで入手) を置いて描き、フォント・字幕の強調・アイコンが出ることを確かめた (コミットしていない)リスクの確認
.env*、キー、トークン) を含めていない人が確認すること
11 枚を並べて、どの方向に進めるか (上の一覧)
docs/design/style-patterns.mdの 11 種類の仕様が、比べたい方向に合っているか (特に 6 キーノート、12 グラス、14 インフォグラフィックの解釈)補足
RenderInternals.callFf) で呼ぶ。モックだけで使い、本番の描画からは使わない08-chalkboard.pngは約 700 KB で、docs/ の画像の目安 (500 KB) を超える。板のなめらかな地が 256 色に減らしにくいため。比べるための画像なので、そのままにしたscripts/mock/は設計のための仮のコードで、本番の描画 (src/render/) は変えていない