Repository navigation
Add Fable 5.1 selfie photo booth demo - #24
Merged
Merged
Conversation
公式のフォトフレーム(1080x1350)にカメラ映像をはめ込んで撮影できる 単体HTMLを public/demos/selfie/ に追加する。 フレーム画像は白く見える部分が実際には透明なので、カメラ映像を描いた上に PNGを重ねるだけでロゴと文字が元データのまま合成される。窓の座標は実測値 (x:60, y:60, 961x1001)。書き出しも元画像と同じ 1080x1350。 - 前後カメラ切替、左右反転、3秒タイマー、フィルタ4種 - シャッター音はWebAudioで合成(音源ファイル不要)。一眼レフに合わせて ミラーアップを主役、100ms後のミラーダウンを1/3の音量にしてある - 撮影後はポラロイド風の現像アニメ、保存とOS標準の共有シート - サイドバーや作例集からはリンクしていない Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Build Day用に、公式のフォトフレームで記念撮影できる単体HTMLを
public/demos/selfie/に追加します。公開URL:
https://moritalous.github.io/fable-5-1-build-day/demos/selfie/ご指示によりサイドバーや作例集からはリンクしていません。
public/配下はStarlightのコンテンツ収集対象外なので、showcase/の自動生成にも現れません。合成のしくみ
フレーム画像は白く見える部分が実際には透明でした。そのためカメラ映像を描いた上にPNGを重ねるだけで、ロゴと文字が元データのまま合成されます。フォントの再現は不要です。
x:60, y:60, 961x1001機能
navigator.share。非対応環境ではボタンを出さず「保存」を主ボタンに昇格)構成
アセット2つを伴うため、既存デモのフラット構成を崩さないようサブディレクトリにまとめています。
index.htmlframe.pngbanner.png参照はすべて相対パスなので
baseの影響を受けません。確認したこと
bun run buildが通ること(39ページ、エラーなし)dist/demos/selfie/を実際にブラウザで開き、JSエラーなし・画像の読み込み成功・撮影から保存までの動作注意
カメラは https または localhost でのみ 動作します。GitHub Pagesはhttpsなので本番は問題ありません。
🤖 Generated with Claude Code