From 4106f436f6e5b7f75fda575501dc54fa94349cb3 Mon Sep 17 00:00:00 2001 From: Vincent Date: Sat, 28 Oct 2023 12:51:16 -0700 Subject: [PATCH 1/3] size project added with chinese --- src/examples/examples.ts | 1 + static/examples/Size.wp | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 static/examples/Size.wp diff --git a/src/examples/examples.ts b/src/examples/examples.ts index 30280510b..df0820e79 100644 --- a/src/examples/examples.ts +++ b/src/examples/examples.ts @@ -116,6 +116,7 @@ export function getExampleGalleries(locales: Locales): Gallery[] { 'Amplitude', 'Garden', 'Letters', + 'Size', 'Poem', 'Questions', 'RainingKitties', diff --git a/static/examples/Size.wp b/static/examples/Size.wp new file mode 100644 index 000000000..aaa05b0e8 --- /dev/null +++ b/static/examples/Size.wp @@ -0,0 +1,6 @@ +Size +=== start/en +word/en,字/zh: (Button() ? 💬("BIG"/en"大"/zh size: 5m) 💬("small"/en"小"/zh size: 1m)) +time/en,時間/zh: Time(1234ms) ÷ 1ms · 1° + +Stage([word] place: Place(0m 0m -5m) background: Color(80% 28 time)) \ No newline at end of file From bc6497a63e920e3e5f96e0a8fe55dcbdc72d414a Mon Sep 17 00:00:00 2001 From: Vincent Date: Sat, 28 Oct 2023 16:18:31 -0700 Subject: [PATCH 2/3] time operator order added parens --- src/examples/examples.ts | 2 +- static/examples/Size.wp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/examples/examples.ts b/src/examples/examples.ts index df0820e79..a188b1829 100644 --- a/src/examples/examples.ts +++ b/src/examples/examples.ts @@ -116,13 +116,13 @@ export function getExampleGalleries(locales: Locales): Gallery[] { 'Amplitude', 'Garden', 'Letters', - 'Size', 'Poem', 'Questions', 'RainingKitties', 'RotatingBinary', 'FontMachine', 'Pumpkin', + 'Size', ] ), createGallery( diff --git a/static/examples/Size.wp b/static/examples/Size.wp index aaa05b0e8..e69659274 100644 --- a/static/examples/Size.wp +++ b/static/examples/Size.wp @@ -1,6 +1,6 @@ Size === start/en -word/en,字/zh: (Button() ? 💬("BIG"/en"大"/zh size: 5m) 💬("small"/en"小"/zh size: 1m)) -time/en,時間/zh: Time(1234ms) ÷ 1ms · 1° +word/en, 字/zh: (Button() ? Phrase("BIG"/en"大"/zh size: 5m) Phrase("small"/en"小"/zh size: 1m)) +time/en,時間/zh: ((Time(1234ms)) ÷ 1ms) · 1° Stage([word] place: Place(0m 0m -5m) background: Color(80% 28 time)) \ No newline at end of file From 0563d84570243699f1ebf3b6444412a8c0582591 Mon Sep 17 00:00:00 2001 From: "Amy J. Ko" Date: Sat, 28 Oct 2023 17:40:34 -0700 Subject: [PATCH 3/3] Update Size.wp Added keyboard support. --- static/examples/Size.wp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/examples/Size.wp b/static/examples/Size.wp index e69659274..653a47d70 100644 --- a/static/examples/Size.wp +++ b/static/examples/Size.wp @@ -1,6 +1,6 @@ Size === start/en -word/en, 字/zh: (Button() ? Phrase("BIG"/en"大"/zh size: 5m) Phrase("small"/en"小"/zh size: 1m)) +word/en, 字/zh: ((Button() | ∆ Key()) ? Phrase("BIG"/en"大"/zh size: 5m) Phrase("small"/en"小"/zh size: 1m)) time/en,時間/zh: ((Time(1234ms)) ÷ 1ms) · 1° -Stage([word] place: Place(0m 0m -5m) background: Color(80% 28 time)) \ No newline at end of file +Stage([word] place: Place(0m 0m -5m) background: Color(80% 28 time))