Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5da57ef3f | ||
|
|
4e55fd44f1 | ||
|
|
bfea2cca93 | ||
|
|
1bb872d4c6 | ||
|
|
53c9c090a8 | ||
|
|
73373344b8 | ||
|
|
27287d967d | ||
|
|
3b13f3d407 | ||
|
|
9f42816441 | ||
|
|
6fd1dbbb27 | ||
|
|
466b5614d3 | ||
|
|
54c3fce061 | ||
|
|
4615f6d558 | ||
|
|
42965e39cd | ||
|
|
88a81baf27 | ||
|
|
f45362ef1b | ||
|
|
d9b20cc05c | ||
|
|
d468bbd351 | ||
|
|
02a3ed19eb | ||
|
|
ae88371737 | ||
|
|
9d985b69d1 | ||
|
|
2f7802661a | ||
|
|
bd08f39532 | ||
|
|
ab99d83b7a | ||
|
|
ad02c7d1cf | ||
|
|
af64e57a1d | ||
|
|
3efed6e1f4 | ||
|
|
02c8c3793b | ||
|
|
baab6abf7a | ||
|
|
c79a92725e | ||
|
|
7c490d8fdf | ||
|
|
556bdd3552 | ||
|
|
c7ed67e2dc | ||
|
|
f4fac28598 | ||
|
|
125484d157 | ||
|
|
e2b0b260d4 | ||
|
|
08eb898ee3 | ||
|
|
aa36952508 | ||
|
|
028b2db469 | ||
|
|
3c43b92209 | ||
|
|
0a92b02cdf | ||
|
|
ef652f8179 | ||
|
|
09702e144d | ||
|
|
f6e340b2b7 | ||
|
|
b6a7743aca | ||
|
|
1d1eb49946 | ||
|
|
7a81e00d5e | ||
|
|
e83dae0e70 | ||
|
|
c473e276cd | ||
|
|
a18e6bf419 | ||
|
|
7d65025806 | ||
|
|
1eb5fd3de2 | ||
|
|
ccbad38a60 | ||
|
|
4097ce5d79 | ||
|
|
4b77d513a1 | ||
|
|
a733f87cba | ||
|
|
d0993d71ad | ||
|
|
b5f4ebfa16 | ||
|
|
f1dc2a1dff | ||
|
|
7d18f5089d | ||
|
|
900850f1a9 | ||
|
|
d30e918704 | ||
|
|
736882b1bd | ||
|
|
7a6b8207e1 | ||
|
|
1dab289a8f | ||
|
|
11324d6ece | ||
|
|
3818deacec | ||
|
|
2325a89629 | ||
|
|
d23b515003 | ||
|
|
5b43aa3c3d | ||
|
|
0b8aadc911 | ||
|
|
63bd330b81 | ||
|
|
af81a9a23a | ||
|
|
b6f405010e | ||
|
|
7ad56a3d3e | ||
|
|
f11c8b1174 | ||
|
|
860cc9af13 | ||
|
|
11b013134c | ||
|
|
269a277103 | ||
|
|
01522177f3 | ||
|
|
76fdecaccd | ||
|
|
5595bd70df | ||
|
|
7260d62662 | ||
|
|
a6473d2adf | ||
|
|
d631050d0d | ||
|
|
5d4ab56ed8 | ||
|
|
7b9f01b870 | ||
|
|
690c0db1bb | ||
|
|
019de0a0d6 | ||
|
|
3c11971227 | ||
|
|
af43d15d63 | ||
|
|
75e5d449b3 | ||
|
|
e58d9194a5 | ||
|
|
a84907925a | ||
|
|
12380d75ab |
No files matched your search
@@ -134,7 +134,7 @@ jobs:
|
||||
build/startup-quit-test/
|
||||
build/lumi-ui-test/
|
||||
build/lumi-history-ui-test/
|
||||
build/habits-cards-ui-test/
|
||||
build/habits-table-ui-test/
|
||||
build/lists-ui-test/
|
||||
build/sync-review-ui-test/
|
||||
build/data-back-ui-test/
|
||||
|
||||
@@ -40,7 +40,9 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/actions/ziran-packages
|
||||
- name: Install signing and test dependencies
|
||||
run: sudo apt-get update && sudo apt-get install -y python3-cryptography python3-fonttools
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install -y python3-cryptography python3-fonttools
|
||||
.github/scripts/install-apt-packages.sh .github/apt/test-packages.txt
|
||||
- name: Build independent packages and check signatures
|
||||
run: |
|
||||
make package-version-test
|
||||
@@ -49,6 +51,8 @@ jobs:
|
||||
make package-upload-test
|
||||
make cells build-laws
|
||||
python3 tests/package_release_test.py
|
||||
- name: Run new packages in the last released app
|
||||
run: python3 tests/package_compat_test.py --skip-forward
|
||||
- name: Configure publisher
|
||||
id: publisher
|
||||
env:
|
||||
|
||||
@@ -100,6 +100,9 @@ jobs:
|
||||
- name: Require Visual Tests
|
||||
run: make visual-test
|
||||
|
||||
- name: Run Packages Across App Versions
|
||||
run: make package-compat-test
|
||||
|
||||
- name: Save Visual Test Evidence
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -119,7 +122,7 @@ jobs:
|
||||
build/startup-quit-test/
|
||||
build/lumi-ui-test/
|
||||
build/lumi-history-ui-test/
|
||||
build/habits-cards-ui-test/
|
||||
build/habits-table-ui-test/
|
||||
build/lists-ui-test/
|
||||
build/sync-review-ui-test/
|
||||
build/data-back-ui-test/
|
||||
@@ -805,6 +808,14 @@ jobs:
|
||||
--stacktrace
|
||||
make android-copy-release-apks
|
||||
make android-copy-bundle
|
||||
# F-Droid rebuilds the universal APK with -PfDroidBuild and copies
|
||||
# this APK's signature onto it, so the two must match byte for byte.
|
||||
./droid/gradlew -p droid assembleRelease -PfDroidBuild=true \
|
||||
-Pkeystore.path="$HOME/.android/inbe-release.keystore" \
|
||||
-Pkeystore.alias="$KEY_ALIAS" \
|
||||
-Pkeystore.password="$KEYSTORE_PASSWORD" \
|
||||
--stacktrace
|
||||
make android-copy-fdroid-apk
|
||||
|
||||
- name: Preserve Android Native Crash Symbols
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -823,7 +834,8 @@ jobs:
|
||||
echo "Could not read APP_VERSION_STRING"
|
||||
exit 1
|
||||
fi
|
||||
for apk in "build/android/inbe-$VERSION.apk" "build/android/inbe-$VERSION-gplay.apk"; do
|
||||
for apk in "build/android/inbe-$VERSION.apk" "build/android/inbe-$VERSION-gplay.apk" \
|
||||
"build/android/inbe-$VERSION-fdroid.apk"; do
|
||||
if [ ! -f "$apk" ]; then
|
||||
echo "Missing universal APK: $apk"
|
||||
exit 1
|
||||
@@ -896,6 +908,16 @@ jobs:
|
||||
done < <(scripts/list-expected-release-assets.sh "$VERSION")
|
||||
exit "$missing"
|
||||
|
||||
- name: Require a Passing Phone Check for a New Version
|
||||
run: |
|
||||
set -euo pipefail
|
||||
VERSION=$(python3 scripts/check-version.py --print-version)
|
||||
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
|
||||
echo "v$VERSION is already tagged; no new version to check"
|
||||
exit 0
|
||||
fi
|
||||
python3 scripts/check-phone-check.py "$VERSION"
|
||||
|
||||
- name: Create and Push Tag If Version Is New
|
||||
id: tag_version
|
||||
env:
|
||||
@@ -969,6 +991,17 @@ jobs:
|
||||
arch="${arch%.rpm}"
|
||||
channels+=("--channel" "rpm-$arch=$rpm")
|
||||
done
|
||||
# Directly installed APKs update themselves from these channels;
|
||||
# the Google Play and F-Droid builds update through their stores.
|
||||
while IFS= read -r apk; do
|
||||
abi="$(basename "$apk" .apk)"
|
||||
abi="${abi#inbe-$VERSION}"
|
||||
case "$abi" in
|
||||
-gplay|-fdroid) continue ;;
|
||||
"") channels+=("--channel" "android=$apk") ;;
|
||||
*) channels+=("--channel" "android$abi=$apk") ;;
|
||||
esac
|
||||
done < <(find build/release -maxdepth 2 -name "inbe-$VERSION*.apk" | sort)
|
||||
if [ ${#channels[@]} -eq 0 ]; then
|
||||
echo "no release artifacts found for the appcast"
|
||||
exit 1
|
||||
|
||||
@@ -13,6 +13,25 @@
|
||||
The canonical macros are `APP_VERSION_STRING`, `APP_VERSION_MAJOR`,
|
||||
`APP_VERSION_MINOR`, and `APP_VERSION_PATCH`; do not create aliases.
|
||||
Only the GitHub Actions release workflow creates or pushes release tags.
|
||||
- A new version publishes only with a passing phone check of its exact
|
||||
sources: build the APK from the committed release, run
|
||||
`make phone-check APK=...` with the development Moto connected through the
|
||||
ThinkPad, and commit `releases/phone-checks/VERSION.json`. Changes to app
|
||||
sources after the check require a new one.
|
||||
- Packages declare the oldest host interface they run on (`host_api` per app
|
||||
in `apps/versions.json`); the host runs `oldest_host_api` to `host_api`.
|
||||
Raise `host_api` when the host interface changes and `oldest_host_api` only
|
||||
when it can no longer run older packages. `make package-compat-test` runs
|
||||
the node's packages in this build and new packages in the last release.
|
||||
- Goal (owner, 2026-10-11): every app updates through its own package
|
||||
without a new APK. Work toward it in small steps alongside requested work;
|
||||
discuss larger moves with the owner first. Put app screens, rules and text
|
||||
in `apps/<app>/`, not in the host under `src/`. Habits and Practices still
|
||||
draw compiled host screens (see [docs/cells.md](docs/cells.md)); when work
|
||||
touches one, prefer moving it into its package. Keep the host interface
|
||||
small and generic (storage, network, locale, platform effects), because
|
||||
each new host call needs an APK before a package can use it. Apps share
|
||||
data only through the host interface, never another app's internals.
|
||||
- Translate changed strings in every affected locale; no English placeholders.
|
||||
- `make locale-translated-test` fails on any locale string that still equals
|
||||
its English text. Translate it; add it to `tests/locale_same_as_english.txt`
|
||||
|
||||
@@ -1,4 +1,41 @@
|
||||
# Changelog
|
||||
## [2.1.32] - 2026-10-13
|
||||
### Added
|
||||
- Drag habits to reorder or deactivate them.
|
||||
- Habits get icons, schedules, times and daily questions.
|
||||
- Questions can compare with your average.
|
||||
- Apps asks before downloading app updates.
|
||||
### Changed
|
||||
- Habits is a table of the last seven days.
|
||||
### Fixed
|
||||
- Android: the floating practice window opens from Recents and shows results.
|
||||
- The donation reminder shows on one device only.
|
||||
- Held keys repeat in text fields.
|
||||
- The breathing count is readable; older habit entries edit again.
|
||||
|
||||
## [2.1.31] - 2026-10-11
|
||||
### Fixed
|
||||
- Android: after the floating practice window, the app fits the screen again instead of running under the status bar and navigation and losing its sides.
|
||||
|
||||
## [2.1.30] - 2026-10-11
|
||||
### Fixed
|
||||
- Long menus, such as the colour theme, scroll by touch and open at your choice.
|
||||
- With a menu open, tapping the navigation closes it and switches screens in one tap.
|
||||
- Menus stay above the navigation instead of hiding their last options behind it.
|
||||
- Web: the app is sharp on high-density screens instead of magnified and blurry.
|
||||
### Changed
|
||||
- Icons are sharper on the web.
|
||||
|
||||
## [2.1.29] - 2026-10-11
|
||||
### Fixed
|
||||
- Scrolling Lumi's commands keeps the keyboard open.
|
||||
- New habits show each colour choice in its own colour.
|
||||
- Leaving Wim Hof no longer freezes the app for a few seconds.
|
||||
- The app no longer freezes just after launch while it checks for app updates.
|
||||
### Changed
|
||||
- Scrollbars use your theme's colours and show how much is in view.
|
||||
- Apps rearranges to fill the window's width.
|
||||
|
||||
## [2.1.28] - 2026-10-10
|
||||
### Added
|
||||
- Connect a phone and a computer by QR code in Profile.
|
||||
|
||||
@@ -398,9 +398,17 @@ INBE_BUNDLE := $(BUILD_DIR)/inbe.zib
|
||||
INBE_FULL_BUNDLE := $(BUILD_DIR)/inbe-full.zib
|
||||
CELL_SOURCES := $(shell find apps src/cells -name '*.zi' | LC_ALL=C sort) src/core/types.zi src/core/breath_timing.zi $(wildcard src/practices/patterns/*rules.zi) src/practices/patterns/patterns_clock.zi src/practices/patterns/patterns_types.zi src/practices/sun_salutation/sun_salutation_rules.zi src/practices/meditation/meditation_timing.zi
|
||||
CELL_RESOURCES := $(shell rg --files assets/habits assets/lists assets/diary assets/lumi assets/mcp 2>/dev/null)
|
||||
WIDGET_SCHEMAS := $(addprefix $(KRYON_DIR)/src/ui/,session.zi geometry.zi drawing_props.zi text_props.zi image_props.zi button_props.zi control_props.zi text_input.zi text_input_props.zi scroll.zi scroll_props.zi semantic.zi text_align.zi checkbox_props.zi toggle_props.zi tab_bar_props.zi box_props.zi) $(addprefix src/cells/,diary_ui_types.zi inbe_ui_types.zi lists_ui_types.zi lumi_ui_types.zi lumi_types.zi leaderboard_ui_types.zi)
|
||||
src/cells/widget_codec.zi: scripts/generate-widget-codecs.py $(WIDGET_SCHEMAS)
|
||||
python3 scripts/generate-widget-codecs.py
|
||||
# App records cross the bundle boundary with codecs generated by Kryon's
|
||||
# generator on top of Kryon's own widget codec.
|
||||
APP_CODEC_SCHEMAS := $(KRYON_DIR)/scripts/generate-widget-codecs.py $(KRYON_DIR)/src/backend/widget_codec.zi $(addprefix src/cells/,diary_ui_types.zi inbe_ui_types.zi lists_ui_types.zi lumi_ui_types.zi lumi_types.zi leaderboard_ui_types.zi)
|
||||
src/cells/app_codec.zi: scripts/generate-app-codec.py $(APP_CODEC_SCHEMAS)
|
||||
python3 scripts/generate-app-codec.py
|
||||
|
||||
.PHONY: app-codec-check
|
||||
app-codec-check:
|
||||
python3 scripts/generate-app-codec.py --check
|
||||
|
||||
test: app-codec-check
|
||||
|
||||
.PHONY: cells
|
||||
cells: $(CELL_BUNDLES) $(INBE_BUNDLE) $(INBE_FULL_BUNDLE)
|
||||
@@ -617,7 +625,7 @@ WEB_TARGET := $(WEB_DIST_DIR)/index.html
|
||||
WEB_APP_SCRIPT := <script>window.__inbeRenderer="canvas";window.__inbeLoadApp("index.js?v=$(WEB_CACHE_BUSTER)")</script>
|
||||
WEB_JS_TARGET := $(WEB_DIST_DIR)/index.js
|
||||
WEB_BOOT_JS := src/web_boot.js
|
||||
WEB_HOST_JS := src/web_host.js scripts/browser_network.js scripts/telegram_host.js
|
||||
WEB_HOST_JS := src/web_host.js scripts/telegram_host.js
|
||||
# Kryon's canvas hosts are Ziran modules on Ziran's web bridge; its runtime is the only JS they need.
|
||||
WEB_CANVAS_HOST_JS := $(ZIRAN_DIR)/web/ziran_web.js
|
||||
WEB_HOST_JS += $(WEB_CANVAS_HOST_JS)
|
||||
@@ -667,7 +675,7 @@ MEDITATION_AUDIO_TRACKS := \
|
||||
|
||||
include mk/package-freebsd.mk
|
||||
|
||||
.PHONY: web-canvas web-canvas-smoke-test web-compare-test web-side-by-side-test all native kryon-host install install-user uninstall stage package-freebsd deb package-deb deb-check rpm package-rpm rpm-check snap package-snap snap-cache-clean flatpak package-flatpak podman-check validate-desktop run tui run-tui run-termi run-termi-direct run-fresh screenshot test ci dist appimage click click-verify vendor-prebuilds vendor-prebuilds-native vendor-prebuilds-web vendor-prebuilds-windows font-subsets font-bundle-check clean clean-linux clean-native clean-vendor-builds windows-setup windows-setup-check android-avd android-audio-e2e android-check-keystore android-copy-assets android-copy-debug-apks android-copy-release-apks android-copy-bundle android-smoke android-local-properties android-debug android-release android-bundle android-install android-install-release android-clean android-rebuild validate-meditation-audio package-unpackaged-assets windows-runtime-assets-check windows windows64 web web-tools-check web-smoke-test web-smoke-test-firefox web-smoke-test-librewolf site site-release-assets-check chrome-web-store chrome-web-store-test firefox-addons firefox-addons-lint firefox-addons-source-zip verify-firefox-addons sync-web-icons social-install social-login social-draft social-x-draft social-post social-x-post social-x-post-dry-run social-post-dry-run
|
||||
.PHONY: web-canvas web-canvas-smoke-test web-compare-test web-side-by-side-test all native kryon-host install install-user uninstall stage package-freebsd deb package-deb deb-check rpm package-rpm rpm-check snap package-snap snap-cache-clean flatpak package-flatpak podman-check validate-desktop run tui run-tui run-termi run-termi-direct run-fresh screenshot test ci dist appimage click click-verify vendor-prebuilds vendor-prebuilds-native vendor-prebuilds-web vendor-prebuilds-windows font-subsets font-bundle-check clean clean-linux clean-native clean-vendor-builds windows-setup windows-setup-check android-avd android-audio-e2e android-check-keystore android-copy-assets android-copy-debug-apks android-copy-release-apks android-copy-fdroid-apk android-copy-bundle android-smoke android-local-properties android-debug android-release android-bundle android-install android-install-release android-clean android-rebuild validate-meditation-audio package-unpackaged-assets windows-runtime-assets-check windows windows64 web web-tools-check web-smoke-test web-smoke-test-firefox web-smoke-test-librewolf site site-release-assets-check chrome-web-store chrome-web-store-test firefox-addons firefox-addons-lint firefox-addons-source-zip verify-firefox-addons sync-web-icons social-install social-login social-draft social-x-draft social-post social-x-post social-x-post-dry-run social-post-dry-run
|
||||
.PHONY: zi-check
|
||||
.PHONY: clean-text-api-check package-check secret-check secret-check-history hooks-install test-tui-screenshot test-termi-screenshot test-termi-screenshot-direct
|
||||
.NOTPARALLEL: all native test visual-test ci zi-check dist windows windows64 android-release android-bundle click deb package-deb rpm package-rpm snap package-snap flatpak package-flatpak
|
||||
@@ -700,11 +708,6 @@ $(KRYON_LIBRARY_BUILD_DIR)/libkryon.a: $(KRYON_UI_ZI) $(KRYON_DIR)/src/ui/module
|
||||
ZIRAN_DIR=$(abspath $(ZIRAN_DIR)) ZIRAN_BUILD_DIR=$(ZIRAN_BUILD_DIR) \
|
||||
$(KRYON_LIBRARY_BUILD_DIR)/libkryon.a
|
||||
|
||||
.PHONY: uri-link-test
|
||||
uri-link-test: $(ZI2C_BIN)
|
||||
@env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u GDK_DISPLAY \
|
||||
python3 tests/uri_host_zi_test.py $(ZIRAN_BUILD_DIR)/bin
|
||||
|
||||
.PHONY: frame-activity-test
|
||||
frame-activity-test: $(ZI2C_BIN)
|
||||
@sh tests/frame_activity_zi_test.sh $(ZIRAN_BUILD_DIR)/bin
|
||||
@@ -728,6 +731,12 @@ break-rules-test: $(ZI2C_BIN)
|
||||
sun-salutation-test: $(ZI2C_BIN)
|
||||
@sh tests/sun_salutation_zi_test.sh $(ZIRAN_BUILD_DIR)/bin
|
||||
|
||||
.PHONY: habits-table-layout-test
|
||||
habits-table-layout-test: $(ZI2C_BIN)
|
||||
@sh tests/habits_table_layout_test.sh $(ZIRAN_BUILD_DIR)/bin
|
||||
|
||||
test: habits-table-layout-test
|
||||
|
||||
.PHONY: sun-salutation-assets-test
|
||||
sun-salutation-assets-test:
|
||||
python3 tests/sun_salutation_assets_test.py
|
||||
@@ -797,20 +806,6 @@ sync-retry-zi-test: build-laws $(ZI2C_BIN)
|
||||
|
||||
test: sync-retry-zi-test
|
||||
|
||||
.PHONY: sync-crypto-zi-test
|
||||
sync-crypto-zi-test: $(ZI2C_BIN)
|
||||
@env -u DISPLAY -u WAYLAND_DISPLAY \
|
||||
sh tests/sync_crypto_zi_test.sh $(ZIRAN_BUILD_DIR)/bin
|
||||
|
||||
test: sync-crypto-zi-test
|
||||
|
||||
.PHONY: sync-account-crypto-zi-test
|
||||
sync-account-crypto-zi-test: $(ZI2C_BIN) $(LIBOQS_A)
|
||||
@env -u DISPLAY -u WAYLAND_DISPLAY \
|
||||
sh tests/sync_account_crypto_zi_test.sh $(ZIRAN_BUILD_DIR)/bin $(LIBOQS_A)
|
||||
|
||||
test: sync-account-crypto-zi-test
|
||||
|
||||
# Exercise the packaged Ziran crypto API against the exact archive used by
|
||||
# Inbe, including ML-KEM round trips, tampering and short-buffer rejection.
|
||||
.PHONY: liboqs-crypto-test
|
||||
@@ -952,7 +947,7 @@ native-text-pixels-test: $(TARGET)
|
||||
sh $(KRYON_DIR)/tests/raylib_text_pixels_test.sh
|
||||
|
||||
# Run every visual suite and retain a receipt even when an earlier suite fails.
|
||||
VISUAL_TEST_TARGETS := practice-images-ui-test leaderboard-ui-test native-screenshot-test native-text-pixels-test native-zoom-test native-visual-test launcher-ui-test settings-sidebar-ui-test startup-quit-ui-test locale-render-ui-test lumi-ui-test lumi-history-ui-test habits-cards-ui-test lists-ui-test sync-review-ui-test data-back-ui-test
|
||||
VISUAL_TEST_TARGETS := practice-images-ui-test leaderboard-ui-test native-screenshot-test native-text-pixels-test native-zoom-test native-visual-test launcher-ui-test settings-sidebar-ui-test startup-quit-ui-test locale-render-ui-test lumi-ui-test lumi-history-ui-test habits-table-ui-test habit-schedule-tool-test habit-tracking-tool-test lists-ui-test sync-review-ui-test data-back-ui-test
|
||||
visual-test: $(TARGET) $(INBE_FULL_BUNDLE)
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u GDK_DISPLAY \
|
||||
-u DBUS_SESSION_BUS_ADDRESS -u SESSION_MANAGER YUE_DESKTOP_RECOVERY=0 \
|
||||
@@ -1001,6 +996,7 @@ $(KRY_GEN_STAMP): Makefile ziran.lock $(ZI2C_BIN) $(ZI_SRCS) $(KRYON_ZI_MODULES)
|
||||
--module-path $(KRYON_DIR)/src/backend \
|
||||
--module-path $(GAME2D_DIR)/src \
|
||||
--module-path qrcode=build/packages/qrcode/src \
|
||||
--module-path plot=build/packages/plot/src \
|
||||
--module-path $(ZIRAN_DIR)/std \
|
||||
--module-path build/packages/daochi-client \
|
||||
-o $(KRY_GEN_DIR) $(ZI_SRCS)
|
||||
@@ -1016,6 +1012,7 @@ $(WEB_GEN_STAMP): Makefile ziran.lock $(ZI2C_BIN) $(ZI_SRCS) $(KRYON_ZI_MODULES)
|
||||
--module-path $(KRYON_DIR)/src/backend \
|
||||
--module-path $(GAME2D_DIR)/src \
|
||||
--module-path qrcode=build/packages/qrcode/src \
|
||||
--module-path plot=build/packages/plot/src \
|
||||
--module-path $(ZIRAN_DIR)/std \
|
||||
--module-path build/packages/daochi-client \
|
||||
-o $(WEB_GEN_DIR) $(ZI_SRCS) $(KRYON_DIR)/src/backend/canvas_raster.zi $(KRYON_DIR)/src/backend/canvas_audio.zi $(KRYON_DIR)/src/backend/page_route.zi
|
||||
@@ -1036,6 +1033,7 @@ $(WINDOWS_GEN_STAMP): Makefile ziran.lock $(ZI2C_BIN) $(ZI_SRCS) $(KRYON_ZI_MODU
|
||||
--module-path $(KRYON_DIR)/src/backend \
|
||||
--module-path $(GAME2D_DIR)/src \
|
||||
--module-path qrcode=build/packages/qrcode/src \
|
||||
--module-path plot=build/packages/plot/src \
|
||||
--module-path $(ZIRAN_DIR)/std \
|
||||
--module-path build/packages/daochi-client \
|
||||
-o $(WINDOWS_GEN_DIR) $(ZI_SRCS)
|
||||
@@ -1064,6 +1062,7 @@ zi-c-plan9: $(KRY_GEN_STAMP)
|
||||
--module-path $(KRYON_DIR)/src/backend \
|
||||
--module-path $(GAME2D_DIR)/src \
|
||||
--module-path qrcode=build/packages/qrcode/src \
|
||||
--module-path plot=build/packages/plot/src \
|
||||
--module-path $(ZIRAN_DIR)/std \
|
||||
--include-dir build/packages/kryon/include --include-dir src \
|
||||
--include-dir $(KRY_GEN_DIR) --include-dir vendor-builds/sqlite \
|
||||
@@ -1299,9 +1298,9 @@ embedded-image-assets-check: $(EMBEDDED_ASSETS_C)
|
||||
icon-sheets-check: $(PACKAGES_MK)
|
||||
python3 tests/icon_sheets_test.py $(KRYON_DIR)/src/ui/icon.zi
|
||||
|
||||
.PHONY: habits-cards-ui-test
|
||||
habits-cards-ui-test: $(TARGET)
|
||||
bash tests/habits_cards_ui_test.sh "$(abspath $(TARGET))"
|
||||
.PHONY: habits-table-ui-test
|
||||
habits-table-ui-test: $(TARGET)
|
||||
bash tests/habits_table_ui_test.sh "$(abspath $(TARGET))"
|
||||
|
||||
.PHONY: lists-ui-test
|
||||
lists-ui-test: $(TARGET)
|
||||
@@ -1630,59 +1629,6 @@ android-text-input-zi-test: $(ZI2C_BIN)
|
||||
|
||||
test: android-text-input-zi-test
|
||||
|
||||
.PHONY: window-close-host-test
|
||||
window-close-host-test: $(ZI2C_BIN)
|
||||
@mkdir -p $(BUILD_DIR)/window-close-host-test/c
|
||||
@$(ZI2C_BIN) --define PLATFORM_DESKTOP \
|
||||
--define NATIVE_WINDOW_HAVE_SDL \
|
||||
--entry window_close_behavior:main --root tests \
|
||||
--module-path src -o $(BUILD_DIR)/window-close-host-test/c \
|
||||
tests/window_close_behavior.zi
|
||||
@$(CC) -std=c11 -O2 -I$(ZIRAN_DIR)/include \
|
||||
-iquote $(BUILD_DIR)/window-close-host-test/c \
|
||||
$(BUILD_DIR)/window-close-host-test/c/*.c \
|
||||
$(RAY_SDL_LDLIBS) -o $(BUILD_DIR)/window-close-host-test/test
|
||||
@env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u GDK_DISPLAY \
|
||||
$(BUILD_DIR)/window-close-host-test/test
|
||||
|
||||
test: window-close-host-test
|
||||
|
||||
.PHONY: activity-host-test
|
||||
activity-host-test: $(ZI2C_BIN)
|
||||
@env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u GDK_DISPLAY \
|
||||
DBUS_SESSION_BUS_ADDRESS=invalid: \
|
||||
sh tests/activity_host_zi_test.sh $(ZIRAN_BUILD_DIR)/bin
|
||||
|
||||
test: activity-host-test
|
||||
|
||||
.PHONY: audio-picker-host-test
|
||||
audio-picker-host-test: $(ZI2C_BIN)
|
||||
@mkdir -p $(BUILD_DIR)/audio-picker-host-test/c
|
||||
@cp tests/support/audio_picker_zenity.sh \
|
||||
$(BUILD_DIR)/audio-picker-host-test/zenity
|
||||
@chmod +x $(BUILD_DIR)/audio-picker-host-test/zenity
|
||||
@$(ZI2C_BIN) --no-main --define PLATFORM_DESKTOP --root src \
|
||||
--module-path $(ZIRAN_DIR)/std \
|
||||
-o $(BUILD_DIR)/audio-picker-host-test/c \
|
||||
src/platform/audio_picker_host.zi
|
||||
@$(CC) -std=c11 -D_DEFAULT_SOURCE -Wall -Wextra -Werror \
|
||||
-Wno-unused-function -I$(ZIRAN_DIR)/include \
|
||||
-iquote $(BUILD_DIR)/audio-picker-host-test/c \
|
||||
tests/audio_picker_host_test.c \
|
||||
$(BUILD_DIR)/audio-picker-host-test/c/*.c \
|
||||
$(BUILD_DIR)/audio-picker-host-test/c/platform/audio_picker_host.c \
|
||||
$(BUILD_DIR)/audio-picker-host-test/c/platform/file_picker.c \
|
||||
-o $(BUILD_DIR)/audio-picker-host-test/test
|
||||
@env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u GDK_DISPLAY \
|
||||
PATH="$(abspath $(BUILD_DIR)/audio-picker-host-test)" \
|
||||
$(abspath $(BUILD_DIR)/audio-picker-host-test/test)
|
||||
|
||||
.PHONY: file-picker-zi-test
|
||||
file-picker-zi-test: $(ZI2C_BIN)
|
||||
@sh tests/file_picker_zi_test.sh $(abspath $(dir $(ZI2C_BIN)))
|
||||
|
||||
test: audio-picker-host-test file-picker-zi-test
|
||||
|
||||
.PHONY: main-platform-zi-test
|
||||
main-platform-zi-test: $(ZI2C_BIN) $(RAYLIB_A)
|
||||
@RAY_LDLIBS='$(RAY_LDLIBS)' sh tests/main_platform_zi_test.sh \
|
||||
@@ -1711,17 +1657,12 @@ update-transport-zi-test: $(ZI2C_BIN)
|
||||
|
||||
test: plan9-host-zi-test android-jni-zi-test update-transport-zi-test
|
||||
|
||||
.PHONY: secondary-window-host-test
|
||||
secondary-window-host-test: $(ZI2C_BIN) $(RAYLIB_A)
|
||||
@sh tests/secondary_window_host_zi_test.sh \
|
||||
$(abspath $(dir $(ZI2C_BIN))) $(abspath $(RAYLIB_A))
|
||||
|
||||
.PHONY: raylib-log-host-test
|
||||
raylib-log-host-test: $(ZI2C_BIN) $(RAYLIB_A)
|
||||
@mkdir -p $(BUILD_DIR)/raylib-log-host-test/c
|
||||
@$(ZI2C_BIN) --define PLATFORM_DESKTOP \
|
||||
--entry raylib_log_behavior:main --root tests \
|
||||
--module-path src --module-path $(ZIRAN_DIR)/std \
|
||||
--module-path src --module-path $(KRYON_DIR)/src/backend --module-path $(ZIRAN_DIR)/std \
|
||||
-o $(BUILD_DIR)/raylib-log-host-test/c tests/raylib_log_behavior.zi
|
||||
@$(CC) -std=c11 -O2 -I$(ZIRAN_DIR)/include \
|
||||
-iquote $(BUILD_DIR)/raylib-log-host-test/c \
|
||||
@@ -1795,13 +1736,6 @@ android-import-zi-test: $(ZI2C_BIN)
|
||||
|
||||
test: android-import-zi-test
|
||||
|
||||
.PHONY: android-runtime-assets-zi-test
|
||||
android-runtime-assets-zi-test: $(ZI2C_BIN)
|
||||
@env -u DISPLAY -u WAYLAND_DISPLAY \
|
||||
sh tests/android_runtime_assets_zi_test.sh $(ZIRAN_BUILD_DIR)/bin
|
||||
|
||||
test: android-runtime-assets-zi-test
|
||||
|
||||
.PHONY: android-lifecycle-zi-test
|
||||
android-lifecycle-zi-test: $(ZI2C_BIN)
|
||||
@env -u DISPLAY -u WAYLAND_DISPLAY \
|
||||
@@ -1915,6 +1849,14 @@ test: style-apply-zi-test
|
||||
appearance-ui-test: $(TARGET) $(INBE_FULL_BUNDLE)
|
||||
sh tests/appearance_ui_test.sh $(abspath $(TARGET))
|
||||
|
||||
.PHONY: habit-schedule-tool-test
|
||||
habit-schedule-tool-test: $(TARGET) $(INBE_FULL_BUNDLE)
|
||||
sh tests/habit_schedule_tool_test.sh $(abspath $(TARGET))
|
||||
|
||||
.PHONY: habit-tracking-tool-test
|
||||
habit-tracking-tool-test: $(TARGET) $(INBE_FULL_BUNDLE)
|
||||
sh tests/habit_tracking_tool_test.sh $(abspath $(TARGET))
|
||||
|
||||
.PHONY: audio-settings-test
|
||||
audio-settings-test: $(ZI2C_BIN)
|
||||
@env -u DISPLAY -u WAYLAND_DISPLAY \
|
||||
@@ -2704,6 +2646,16 @@ android-copy-release-apks: | $(ANDROID_BUILD_DIR)
|
||||
fi; \
|
||||
cp "$$gplay_universal" "$(ANDROID_BUILD_DIR)/$(APP_NAME)-$(APP_VERSION)-gplay.apk"
|
||||
|
||||
# F-Droid rebuilds this universal APK with -PfDroidBuild and copies its
|
||||
# signature, so run after a signed assembleRelease -PfDroidBuild=true.
|
||||
android-copy-fdroid-apk: | $(ANDROID_BUILD_DIR)
|
||||
@fdroid_universal="$$(find droid/app/build/outputs/apk -path '*/release/*' -name "app-universal-release*.apk" | head -n 1)"; \
|
||||
if [ -z "$$fdroid_universal" ] || [ ! -f "$$fdroid_universal" ]; then \
|
||||
echo "No universal F-Droid APK was produced"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
cp "$$fdroid_universal" "$(ANDROID_BUILD_DIR)/$(APP_NAME)-$(APP_VERSION)-fdroid.apk"
|
||||
|
||||
android-copy-bundle: | $(ANDROID_BUILD_DIR)
|
||||
bash scripts/check-android-optimization.sh droid/app/build/outputs/bundle/gplay/app-gplay.aab
|
||||
@found=0; \
|
||||
@@ -3017,7 +2969,7 @@ test: sync-recovery-test
|
||||
|
||||
# Validate before producing release packages, including direct artifact targets.
|
||||
$(APPIMAGE_TARGET) $(DEB_TARGET) $(RPM_TARGET) $(SNAP_TARGET) $(FLATPAK_TARGET) $(CLICK_TARGET) $(CHROME_WEB_STORE_ZIP) $(FIREFOX_ADDONS_ZIP): | version-check
|
||||
android-release android-bundle android-copy-release-apks android-copy-bundle windows-setup site: version-check
|
||||
android-release android-bundle android-copy-release-apks android-copy-fdroid-apk android-copy-bundle windows-setup site: version-check
|
||||
|
||||
# Actual artifacts are gated too, including direct and incremental builds.
|
||||
$(TARGET) $(KRYON_HOST_TARGET) $(WIN64_TARGET) $(WEB_JS_TARGET) $(WEB_CANVAS_TARGET): $(SYNC_RETRY_SOURCE) | build-laws
|
||||
@@ -3093,6 +3045,25 @@ test: app-click-block-zi-test
|
||||
package-release-test: cells $(ZIRAN_BUILD_DIR)/libziran.a
|
||||
python3 tests/package_release_test.py
|
||||
|
||||
# This build runs the packages the node serves, and the last released app runs
|
||||
# each new package that declares a host interface it has.
|
||||
.PHONY: package-compat-test
|
||||
package-compat-test: $(TARGET) $(CELL_BUNDLES) $(INBE_BUNDLE)
|
||||
python3 tests/package_compat_test.py $(abspath $(TARGET))
|
||||
|
||||
.PHONY: phone-check-gate-test
|
||||
phone-check-gate-test:
|
||||
python3 tests/phone_check_gate_test.py
|
||||
|
||||
test: phone-check-gate-test
|
||||
|
||||
# Check an exact APK on the development Moto and record the release receipt:
|
||||
# make phone-check APK=path/to/inbe.apk
|
||||
.PHONY: phone-check
|
||||
phone-check:
|
||||
@test -n "$(APK)" || { echo "Set APK=path/to/inbe.apk"; exit 1; }
|
||||
python3 scripts/phone-check.py "$(APK)" --record
|
||||
|
||||
test: package-release-test
|
||||
|
||||
.PHONY: app-preferences-sync-test
|
||||
@@ -3146,7 +3117,7 @@ device-key-wasm-test: $(ZI2C_BIN)
|
||||
test: device-key-test
|
||||
web-smoke-test web-canvas-smoke-test: device-key-wasm-test
|
||||
|
||||
.PHONY: telegram-authorization-test telegram-bridge-test telegram-host-test telegram-entry-protocol-test telegram-account-flow-test telegram-account-ui-test settings-telegram-ui-test lumi-authorization-test delegate-account-test delegate-secret-cleanup-test storage-delegate-test lumi-delegate-scope-test
|
||||
.PHONY: telegram-authorization-test telegram-bridge-test telegram-host-test telegram-entry-protocol-test telegram-account-flow-test telegram-account-ui-test settings-telegram-ui-test lumi-authorization-test delegate-account-test storage-delegate-test lumi-delegate-scope-test
|
||||
|
||||
telegram-bridge-test:
|
||||
@sh tests/telegram_bridge_test.sh
|
||||
@@ -3178,16 +3149,13 @@ lumi-authorization-test: $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
delegate-account-test: $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
@sh tests/delegate_account_zi_test.sh $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
|
||||
delegate-secret-cleanup-test: $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
@sh tests/delegate_secret_cleanup_zi_test.sh $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
|
||||
storage-delegate-test: $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
@sh tests/storage_delegate_zi_test.sh $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
|
||||
lumi-delegate-scope-test: $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
@sh tests/lumi_delegate_scope_zi_test.sh $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
|
||||
telegram-authorization-test: telegram-bridge-test telegram-host-test telegram-entry-protocol-test telegram-account-flow-test telegram-account-ui-test settings-telegram-ui-test lumi-authorization-test delegate-account-test delegate-secret-cleanup-test storage-delegate-test lumi-delegate-scope-test
|
||||
telegram-authorization-test: telegram-bridge-test telegram-host-test telegram-entry-protocol-test telegram-account-flow-test telegram-account-ui-test settings-telegram-ui-test lumi-authorization-test delegate-account-test storage-delegate-test lumi-delegate-scope-test
|
||||
|
||||
test: telegram-authorization-test
|
||||
|
||||
@@ -3203,6 +3171,15 @@ lumi-feedback-delivery-test: $(ZIRAN_BIN) $(LIBOQS_A) | build-laws
|
||||
|
||||
test: lumi-feedback-delivery-test
|
||||
|
||||
.PHONY: diary-spelling-test diary-history-test
|
||||
diary-spelling-test: $(ZIRAN_BIN) $(LIBOQS_A) | build-laws
|
||||
@sh tests/diary_spelling_test.sh $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
|
||||
diary-history-test: $(ZI2C_BIN)
|
||||
@sh tests/diary_history_zi_test.sh $(ZIRAN_BUILD_DIR)/bin
|
||||
|
||||
test: diary-spelling-test diary-history-test
|
||||
|
||||
# Lumi reports name the device, system and version (no identifiers).
|
||||
.PHONY: device-info-test
|
||||
device-info-test: $(ZIRAN_BIN)
|
||||
|
||||
@@ -1,5 +1,20 @@
|
||||
# Changelog
|
||||
|
||||
## [1.1.9] - 2026-10-11
|
||||
|
||||
### Changed
|
||||
- Scrollbars use your theme's colours and show how much of the page is in view.
|
||||
|
||||
## [1.1.8] - 2026-10-10
|
||||
|
||||
### Added
|
||||
- Correct the spelling of an entry with one button. Inner Breeze sends the entry to the Waozi node, which returns it with only misspelled words corrected. It uses the same daily online allowance as Lumi.
|
||||
- Undo and redo buttons, so a correction or any other change can be taken back.
|
||||
|
||||
### Changed
|
||||
- A title bar shows the date in the middle, between the previous and next day. Today and the calendar sit together on the left, and the entry's tools are compact buttons on the right, leaving more room for writing.
|
||||
- The entry reaches the bottom of the screen; a notice takes room below it only while it is shown.
|
||||
|
||||
## [1.1.7] - 2026-10-10
|
||||
|
||||
### Changed
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
using ImageFit;
|
||||
using TextAlign;
|
||||
using TextWrap;
|
||||
using ButtonTone;
|
||||
using ButtonEmphasis;
|
||||
host_api :: #system_library "host_api";
|
||||
@@ -35,6 +36,15 @@ state: DiaryMessage;
|
||||
frame: DiaryUiFrame;
|
||||
pending: bool;
|
||||
|
||||
DIARY_PREVIOUS_ICON :: "S1.8rr:M15 5L8 12L15 19"
|
||||
DIARY_NEXT_ICON :: "S1.8rr:M9 5L16 12L9 19"
|
||||
DIARY_CALENDAR_ICON :: "S1.6rr:M4 5H20V20H4ZM4 10H20M8 3V7M16 3V7"
|
||||
DIARY_TIME_ICON :: "S1.6rr:M21 12C21 16.97 16.97 21 12 21C7.03 21 3 16.97 3 12C3 7.03 7.03 3 12 3C16.97 3 21 7.03 21 12ZM12 7V12L15.5 14"
|
||||
DIARY_PHOTO_ICON :: "S1.6rr:M3 5H21V19H3ZM3 16L8 11L13 16L16 13L21 18M17.5 8.5C17.5 9.33 16.83 10 16 10C15.17 10 14.5 9.33 14.5 8.5C14.5 7.67 15.17 7 16 7C16.83 7 17.5 7.67 17.5 8.5Z"
|
||||
DIARY_UNDO_ICON :: "S1.8rr:M9 14L4 9L9 4M4 9H14C17.31 9 20 11.69 20 15C20 18.31 17.31 21 14 21H11"
|
||||
DIARY_REDO_ICON :: "S1.8rr:M15 14L20 9L15 4M20 9H10C6.69 9 4 11.69 4 15C4 18.31 6.69 21 10 21H13"
|
||||
DIARY_SPELLING_ICON :: "S2rr:M3 14L7.5 3L12 14M4.8 10H10.2M12 17L15.5 20.5L21.5 13"
|
||||
|
||||
DiaryObserve :: () -> DiaryUiFrame {
|
||||
return ReadDiaryUiHost()
|
||||
}
|
||||
@@ -117,6 +127,15 @@ DateTitle :: (year: s32, month: s32, day: s32) -> string {
|
||||
return BuilderFinish(title)
|
||||
}
|
||||
|
||||
HasWords :: (text: string) -> bool {
|
||||
for byte: text {
|
||||
if byte != cast(u8)32 && byte != cast(u8)10 && byte != cast(u8)13 && byte != cast(u8)9 {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Scale :: (value: s32) -> s32 {
|
||||
return cast(s32)(cast(float32)value * frame.scale)
|
||||
}
|
||||
@@ -126,20 +145,37 @@ FinishView :: () -> DiaryMessage {
|
||||
return state
|
||||
}
|
||||
|
||||
DiaryAction :: ( id: s32, label: string, bounds: Rectangle, enabled: bool = true) {
|
||||
// A button with an icon shows only the icon; its label names it for
|
||||
// accessibility.
|
||||
DiaryAction :: ( id: s32, label: string, bounds: Rectangle, enabled: bool = true,
|
||||
icon: string = "", selected: bool = false, loading: bool = false) {
|
||||
if Button(frame.session, ButtonProps.{.id = id, .bounds = bounds,
|
||||
.label = label, .disabled = !enabled, .tone = cast(ButtonTone)ButtonToneNeutral,
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft}) != 0 {
|
||||
.label = label, .disabled = !enabled, .selected = selected, .loading = loading,
|
||||
.icon_shape = icon, .icon_only = icon != "", .fit_content = true,
|
||||
.tone = cast(ButtonTone)ButtonToneNeutral,
|
||||
.emphasis = cast(ButtonEmphasis)(ifx icon != "" then ButtonEmphasisGhost else ButtonEmphasisSoft)}) != 0 {
|
||||
// Photos, undo, redo and spelling are host effects.
|
||||
frame.focused = false
|
||||
if id == 29005 {
|
||||
frame.photo_requested = true
|
||||
frame.focused = false
|
||||
return
|
||||
}
|
||||
if id == 29014 {
|
||||
frame.undo_requested = true
|
||||
return
|
||||
}
|
||||
if id == 29015 {
|
||||
frame.redo_requested = true
|
||||
return
|
||||
}
|
||||
if id == 29016 {
|
||||
frame.spelling_requested = true
|
||||
return
|
||||
}
|
||||
state.action = DIARY_CONTROL
|
||||
state.control = id
|
||||
pending = true
|
||||
frame.scroll = 0
|
||||
frame.focused = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,24 +185,70 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
|
||||
column := CenteredColumnFor(frame.width, Scale(640), Scale(16))
|
||||
left := cast(float32)column.x
|
||||
width := cast(float32)column.width
|
||||
Text(frame.session, TextProps.{.bounds = Rectangle.{left, cast(float32)Scale(24),
|
||||
width, cast(float32)Scale(40)}, .text = DateTitle(state.year, state.month, state.day), .font = frame.font})
|
||||
part := (width - cast(float32)Scale(12)) / 3.0
|
||||
compact := frame.height < Scale(480)
|
||||
top := cast(float32)(ifx compact then Scale(44) else Scale(76))
|
||||
DiaryAction(29001, "‹", Rectangle.{left, top, part, cast(float32)Scale(44)})
|
||||
DiaryAction(29004, DiaryLocaleHost("diary_today"), Rectangle.{left + part + cast(float32)Scale(6),
|
||||
top, part, cast(float32)Scale(44)})
|
||||
DiaryAction(29002, "›", Rectangle.{left + 2.0 * (part + cast(float32)Scale(6)),
|
||||
top, part, cast(float32)Scale(44)},
|
||||
top := cast(float32)(ifx compact then Scale(4) else Scale(12))
|
||||
control := cast(float32)Scale(44)
|
||||
gap := cast(float32)Scale(8)
|
||||
|
||||
// Title bar: the selected date, centered between the previous and next day.
|
||||
DiaryAction(29001, "‹", Rectangle.{left, top, control, control}, true, DIARY_PREVIOUS_ICON)
|
||||
DiaryAction(29002, "›", Rectangle.{left + width - control, top, control, control},
|
||||
OnOrBefore(Next(Date.{state.year, state.month, state.day}, 1), today) &&
|
||||
!OnOrBefore(today, Date.{state.year, state.month, state.day}))
|
||||
!OnOrBefore(today, Date.{state.year, state.month, state.day}),
|
||||
DIARY_NEXT_ICON)
|
||||
title := DateTitle(state.year, state.month, state.day)
|
||||
title_strong: [1]TextRange = .[TextRange.{.start = 0, .end = cast(s32)title.count}]
|
||||
Text(frame.session, TextProps.{.bounds = Rectangle.{left + control + gap, top,
|
||||
width - 2.0 * (control + gap), control}, .text = title,
|
||||
.font = frame.font + Scale(4), .strong = title_strong[:],
|
||||
.align = cast(TextAlign)TextAlignCenter, .vertical_align = cast(TextAlign)TextAlignCenter,
|
||||
.wrap = cast(TextWrap)TextWrapNone})
|
||||
|
||||
// Tools: Today and the calendar move between days; undo, redo, spelling,
|
||||
// the time and photos change the entry. Today narrows on phones so every
|
||||
// icon keeps its target.
|
||||
tools := top + control + gap
|
||||
tool_gap := cast(float32)Scale(4)
|
||||
tool := control
|
||||
today_width := width - 6.0 * tool - 5.0 * tool_gap - gap
|
||||
if today_width < cast(float32)Scale(64) {
|
||||
// The narrowest phones keep Today readable with smaller icon targets.
|
||||
today_width = cast(float32)Scale(64)
|
||||
tool = (width - today_width - gap - 5.0 * tool_gap) / 6.0
|
||||
}
|
||||
if today_width > cast(float32)Scale(128) {
|
||||
today_width = cast(float32)Scale(128)
|
||||
}
|
||||
DiaryAction(29004, DiaryLocaleHost("diary_today"), Rectangle.{left, tools, today_width, control})
|
||||
DiaryAction(29003, DiaryLocaleHost("tab_diary_calendar"),
|
||||
Rectangle.{left, top + cast(float32)Scale(52), width, cast(float32)Scale(44)})
|
||||
Rectangle.{left + today_width + gap, tools, tool, control},
|
||||
true, DIARY_CALENDAR_ICON, state.calendar)
|
||||
editable := !state.load_error && state.year > 0
|
||||
if !state.calendar {
|
||||
idle := editable && !frame.spelling_busy
|
||||
DiaryAction(29014, DiaryLocaleHost("diary_undo"),
|
||||
Rectangle.{left + width - 5.0 * tool - 4.0 * tool_gap, tools, tool, control},
|
||||
idle && frame.can_undo, DIARY_UNDO_ICON)
|
||||
DiaryAction(29015, DiaryLocaleHost("diary_redo"),
|
||||
Rectangle.{left + width - 4.0 * tool - 3.0 * tool_gap, tools, tool, control},
|
||||
idle && frame.can_redo, DIARY_REDO_ICON)
|
||||
DiaryAction(29016, DiaryLocaleHost("diary_check_spelling"),
|
||||
Rectangle.{left + width - 3.0 * tool - 2.0 * tool_gap, tools, tool, control},
|
||||
idle && HasWords(state.text), DIARY_SPELLING_ICON, false, frame.spelling_busy)
|
||||
DiaryAction(29013, DiaryLocaleHost("diary_insert_time"),
|
||||
Rectangle.{left + width - 2.0 * tool - tool_gap, tools, tool, control},
|
||||
!frame.spelling_busy, DIARY_TIME_ICON)
|
||||
DiaryAction(29005, DiaryLocaleHost("diary_attach_photo"),
|
||||
Rectangle.{left + width - tool, tools, tool, control},
|
||||
true, DIARY_PHOTO_ICON)
|
||||
}
|
||||
content := tools + control + cast(float32)Scale(12)
|
||||
content_height := cast(float32)(frame.height - frame.bottom) - content - cast(float32)Scale(16)
|
||||
|
||||
if state.calendar {
|
||||
scroll := Scroll(frame.session, ScrollProps.{.key = cast(u64)290300,
|
||||
.bounds = Rectangle.{left, top + cast(float32)Scale(104), width,
|
||||
cast(float32)(frame.height - frame.bottom - Scale(200))},
|
||||
.bounds = Rectangle.{left, content, width, content_height},
|
||||
.content_height = Scale(344), .scroll_offset = frame.calendar_scroll})
|
||||
frame.calendar_scroll = scroll.scroll_offset
|
||||
if !scroll.opened {
|
||||
@@ -204,29 +286,26 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
|
||||
End(frame.session)
|
||||
return FinishView()
|
||||
}
|
||||
editor_height := frame.height - frame.bottom - cast(s32)top - Scale(236)
|
||||
// The editor reaches the bottom; a notice takes room below it only while
|
||||
// it is shown.
|
||||
notice := frame.photo_error || state.load_error || frame.spelling_notice != ""
|
||||
notice_room := ifx notice then Scale(60) else 0
|
||||
editor_height := cast(s32)content_height - notice_room
|
||||
if editor_height < Scale(120) {
|
||||
editor_height = Scale(120)
|
||||
}
|
||||
page := Scroll(frame.session, ScrollProps.{.key = cast(u64)290301,
|
||||
.bounds = Rectangle.{left, top + cast(float32)Scale(104), width,
|
||||
cast(float32)(frame.height - frame.bottom - cast(s32)top - Scale(120))},
|
||||
.content_height = editor_height + Scale(104) +
|
||||
(ifx state.photo_count > 0 then Scale(380) else 0), .scroll_offset = frame.page_scroll})
|
||||
.bounds = Rectangle.{left, content, width, content_height},
|
||||
.content_height = editor_height + notice_room +
|
||||
(ifx state.photo_count > 0 then Scale(392) else 0), .scroll_offset = frame.page_scroll})
|
||||
frame.page_scroll = page.scroll_offset
|
||||
if !page.opened {
|
||||
return FinishView()
|
||||
}
|
||||
DiaryAction(29013, DiaryLocaleHost("diary_insert_time"),
|
||||
Rectangle.{left, page.content.y, (width - cast(float32)Scale(8)) / 2.0, cast(float32)Scale(44)})
|
||||
DiaryAction(29005, DiaryLocaleHost("diary_attach_photo"),
|
||||
Rectangle.{left + (width + cast(float32)Scale(8)) / 2.0, page.content.y,
|
||||
(width - cast(float32)Scale(8)) / 2.0, cast(float32)Scale(44)})
|
||||
area: TextAreaProps
|
||||
area.key = cast(u64)290200
|
||||
area.focus_id = 29020
|
||||
area.bounds = Rectangle.{left, page.content.y + cast(float32)Scale(56), width,
|
||||
cast(float32)editor_height}
|
||||
area.bounds = Rectangle.{left, page.content.y, width, cast(float32)editor_height}
|
||||
area.value = state.text
|
||||
area.label = DiaryLocaleHost("tab_diary")
|
||||
area.wrap = true
|
||||
@@ -235,7 +314,9 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
|
||||
area.scroll_y = frame.scroll
|
||||
area.focused = frame.focused
|
||||
area.selecting = frame.selecting
|
||||
area.read_only = state.load_error || state.year < 1
|
||||
// The entry waits while its spelling is checked, so the correction
|
||||
// always applies to the text that was sent.
|
||||
area.read_only = !editable || frame.spelling_busy
|
||||
area.max_bytes = 2147483646
|
||||
area.max_codepoints = 2147483646
|
||||
area.input = frame.input
|
||||
@@ -261,14 +342,20 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
|
||||
frame.clipboard_text = edited.clipboard_text
|
||||
}
|
||||
|
||||
if frame.photo_error || state.load_error {
|
||||
status := ifx frame.photo_error then "diary_photo_error" else "diary_read_error"
|
||||
if notice {
|
||||
status := frame.spelling_notice
|
||||
if state.load_error {
|
||||
status = "diary_read_error"
|
||||
}
|
||||
if frame.photo_error {
|
||||
status = "diary_photo_error"
|
||||
}
|
||||
Text(frame.session, TextProps.{.bounds = Rectangle.{left,
|
||||
area.bounds.y + area.bounds.height + cast(float32)Scale(12), width, cast(float32)Scale(40)},
|
||||
.text = DiaryLocaleHost(status), .font = frame.font})
|
||||
}
|
||||
if state.photo_count > 0 {
|
||||
photo_top := area.bounds.y + area.bounds.height + cast(float32)Scale(60)
|
||||
photo_top := area.bounds.y + area.bounds.height + cast(float32)(notice_room + Scale(12))
|
||||
photo_bounds := Rectangle.{left, photo_top, width, cast(float32)Scale(240)}
|
||||
if frame.photo_format.count > 0 {
|
||||
path: Vec(u8)
|
||||
|
||||
@@ -31,14 +31,22 @@ HabitsApply :: (message: HabitsMessage) -> HabitsMessage {
|
||||
return message
|
||||
}
|
||||
if message.action == HABITS_DAY_ACTION {
|
||||
if message.modal_active || message.index < 0 || message.index >= message.count ||
|
||||
(!message.scheduled && !message.completed) {
|
||||
// Days off the habit's schedule open and count like planned days.
|
||||
if message.modal_active || message.index < 0 || message.index >= message.count {
|
||||
return message
|
||||
}
|
||||
if message.counter_enabled != 0 {
|
||||
message.day_action = ifx message.decrement then HABITS_DAY_DECREMENT else HABITS_DAY_COUNT
|
||||
} else if message.linked_count > 0 {
|
||||
message.day_action = HABITS_DAY_LINKED
|
||||
} else if message.span {
|
||||
// A tap starts the habit's span, the next ends it; a day with
|
||||
// spans opens their data.
|
||||
message.day_action = HABITS_DAY_SPAN
|
||||
} else if message.question_count > 0 {
|
||||
// The day opens its questions, or the data of a done day,
|
||||
// instead of being marked or cleared.
|
||||
message.day_action = HABITS_DAY_QUESTIONS
|
||||
} else {
|
||||
message.day_action = HABITS_DAY_TOGGLE
|
||||
}
|
||||
|
||||
@@ -1,5 +1,25 @@
|
||||
# Changelog
|
||||
|
||||
## [2.1.29] - 2026-10-11
|
||||
|
||||
- Bring Lumi 1.3.9, Diary 1.1.9, Lists 1.0.5 and Leaderboard 1.0.1.
|
||||
- Requires Inner Breeze 2.1.29 or later.
|
||||
|
||||
## [2.1.28] - 2026-10-11
|
||||
|
||||
- Bring Lumi's message selection with copy and delete.
|
||||
- Requires Inner Breeze 2.1.29 or later.
|
||||
|
||||
## [2.1.27] - 2026-10-11
|
||||
|
||||
- Bring Lumi's chat that loads older messages as you scroll up.
|
||||
- Requires Inner Breeze 2.1.29 or later.
|
||||
|
||||
## [2.1.26] - 2026-10-10
|
||||
|
||||
- Bring Diary's title bar, undo and redo, and spelling correction, and Lumi's typing dots.
|
||||
- Requires Inner Breeze 2.1.29 or later.
|
||||
|
||||
## [2.1.25] - 2026-10-10
|
||||
|
||||
- Open Leaderboard as its own app.
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## [1.0.1] - 2026-10-11
|
||||
|
||||
- Scrollbars use your theme's colours and show how much of the list is in view.
|
||||
|
||||
## [1.0.0] - 2026-10-10
|
||||
|
||||
- Rank yourself with your friends for Wim Hof, breathing patterns, meditation and Sun Salutation.
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
# Changelog
|
||||
|
||||
## [1.0.5] - 2026-10-11
|
||||
|
||||
- Scrollbars use your theme's colours and show how much of the list is in view.
|
||||
- Scrolling while you type a new item keeps the keyboard open.
|
||||
|
||||
## [1.0.4] - 2026-10-10
|
||||
|
||||
- Requires Inner Breeze 2.1.28 or later.
|
||||
|
||||
@@ -1,5 +1,26 @@
|
||||
# Changelog
|
||||
|
||||
## [1.3.9] - 2026-10-11
|
||||
### Fixed
|
||||
- Scrolling the command list keeps the keyboard open.
|
||||
### Changed
|
||||
- Scrollbars use your theme's colours and show how much of the chat is in view.
|
||||
|
||||
## [1.3.8] - 2026-10-11
|
||||
### Added
|
||||
- Select messages like in Telegram: hold a message to select it, then tap or drag across others; dragging to the top or bottom of the chat scrolls it, through older messages too. Checkmarks show what is selected, and a bar over the top of the chat shows how many, with copy and delete.
|
||||
### Changed
|
||||
- Lumi's typing dots appear after a short pause, as a person reads before typing.
|
||||
- Feedback shows only its card with Yes and No, without a second copy of the question.
|
||||
|
||||
## [1.3.7] - 2026-10-11
|
||||
### Changed
|
||||
- Like Telegram, the chat shows your newest messages and loads older ones as you scroll up, right away while the newest do not fill the screen.
|
||||
|
||||
## [1.3.6] - 2026-10-10
|
||||
### Added
|
||||
- While Lumi is answering, three dots show in its bubble where the answer will appear.
|
||||
|
||||
## [1.3.5] - 2026-10-10
|
||||
|
||||
- Requires Inner Breeze 2.1.28 or later.
|
||||
|
||||
@@ -137,8 +137,10 @@ LumiRespond :: (input: string) {
|
||||
if PerformLumiActionHost(action) {
|
||||
SetLumiHabitChoiceHost(false)
|
||||
SetLumiDiaryChoiceHost(false)
|
||||
if action.kind == LUMI_SHOW_PROGRESS || action.kind == LUMI_SHOW_DONATIONS {
|
||||
// These tools already appended their typed card to the chat.
|
||||
if action.kind == LUMI_SHOW_PROGRESS || action.kind == LUMI_SHOW_DONATIONS ||
|
||||
action.kind == LUMI_REPORT_FEEDBACK {
|
||||
// These tools already appended their typed card to the chat;
|
||||
// the feedback card with Yes and No is the whole answer.
|
||||
return
|
||||
}
|
||||
reply = "lumi_opened"
|
||||
@@ -156,8 +158,6 @@ LumiRespond :: (input: string) {
|
||||
reply = "lumi_practice_started"
|
||||
} else if action.kind == LUMI_WRITE_DIARY {
|
||||
reply = "lumi_diary_saved"
|
||||
} else if action.kind == LUMI_REPORT_FEEDBACK {
|
||||
reply = "lumi_feedback_confirm"
|
||||
}
|
||||
} else {
|
||||
reply = "lumi_unavailable"
|
||||
|
||||
@@ -13,6 +13,10 @@
|
||||
#import "control_props"
|
||||
#import "box_props"
|
||||
#import "box_widget"
|
||||
#import "checkbox_props"
|
||||
#import "checkbox_widget"
|
||||
#import "press_props"
|
||||
#import "press_widget"
|
||||
#import "scroll_props"
|
||||
#import "scroll_widget"
|
||||
#import "tree"
|
||||
@@ -41,6 +45,7 @@ ReadLumiSuggestionHabitHost :: (index: s32) -> LumiTask #foreign host_api;
|
||||
LumiViewLocaleHost :: (key: string) -> string #foreign host_api;
|
||||
LumiFeedbackChoiceHost :: (id: string, action: s32) -> bool #foreign host_api;
|
||||
LumiLoadOlderHost :: () -> bool #foreign host_api;
|
||||
LumiDeleteRowHost :: (index: s32) -> bool #foreign host_api;
|
||||
LumiFirstVisibleRowHost :: (scroll: s32) -> s32 #foreign host_api;
|
||||
LumiRowOffsetHost :: (index: s32) -> s32 #foreign host_api;
|
||||
ReadLumiDonationHost :: (coin: s32) -> LumiDonation #foreign host_api;
|
||||
@@ -89,6 +94,201 @@ menu_revision: s64 = -1;
|
||||
menu_commands: [LUMI_MENU_COMMANDS]LumiMenuCommand;
|
||||
menu_scroll: s32;
|
||||
focus_request: s32;
|
||||
// Telegram-style selection: hold a message to select it, then tap messages
|
||||
// or drag across them; dragging near the chat's top or bottom scrolls it.
|
||||
// Rows are counted from the newest message, which older messages loading
|
||||
// above do not change, so a sweep can keep going up through the history.
|
||||
// The greeting above every message is kept apart.
|
||||
LUMI_SELECT_MAX :: 4096
|
||||
selecting: bool;
|
||||
selected: [LUMI_SELECT_MAX]bool;
|
||||
greeting_selected: bool;
|
||||
selected_count: s32;
|
||||
sweeping: bool;
|
||||
// The row the sweep began on, counted from the newest message; -1 is the
|
||||
// greeting.
|
||||
sweep_anchor: s32;
|
||||
sweep_value: bool;
|
||||
// Where the pointer is during a sweep, for scrolling at the chat's edges.
|
||||
sweep_pointer_y: float32;
|
||||
sweep_seen: bool;
|
||||
confirm_delete: bool;
|
||||
// Copied text waits until the composer has written its own clipboard state.
|
||||
pending_copy: string;
|
||||
copy_pending: bool;
|
||||
LUMI_CLOSE_ICON :: "S1.8rr:M6 6L18 18M18 6L6 18"
|
||||
LUMI_COPY_ICON :: "S1.6rr:M9 9H20V20H9ZM15 5V4H4V15H5"
|
||||
LUMI_DELETE_ICON :: "S1.6rr:M3 6H21M9 6V3H15V6M5 6L6 21H18L19 6M10 10V17M14 10V17"
|
||||
|
||||
// A row's place counted from the newest message; the greeting is -1.
|
||||
RowSlot :: (index: s32) -> s32 {
|
||||
if index <= 0 {
|
||||
return -1
|
||||
}
|
||||
return frame.chat_count - 1 - index
|
||||
}
|
||||
|
||||
SlotRow :: (slot: s32) -> s32 {
|
||||
if slot < 0 {
|
||||
return 0
|
||||
}
|
||||
return frame.chat_count - 1 - slot
|
||||
}
|
||||
|
||||
IsSelected :: (index: s32) -> bool {
|
||||
slot := RowSlot(index)
|
||||
if slot < 0 {
|
||||
return greeting_selected
|
||||
}
|
||||
return slot < LUMI_SELECT_MAX && selected[slot]
|
||||
}
|
||||
|
||||
SelectionClear :: () {
|
||||
for index: cast(s32)0..LUMI_SELECT_MAX - 1 {
|
||||
selected[index] = false
|
||||
}
|
||||
greeting_selected = false
|
||||
selected_count = 0
|
||||
selecting = false
|
||||
sweeping = false
|
||||
confirm_delete = false
|
||||
}
|
||||
|
||||
SelectionSet :: (index: s32, value: bool) {
|
||||
if index < 0 || index >= frame.chat_count || IsSelected(index) == value {
|
||||
return
|
||||
}
|
||||
slot := RowSlot(index)
|
||||
if slot < 0 {
|
||||
greeting_selected = value
|
||||
} else if slot < LUMI_SELECT_MAX {
|
||||
selected[slot] = value
|
||||
} else {
|
||||
return
|
||||
}
|
||||
selected_count += ifx value then 1 else -1
|
||||
}
|
||||
|
||||
// A press began on a row: it selects or clears that row, and dragging then
|
||||
// gives every row it sweeps over the same state.
|
||||
SweepStart :: (index: s32, value: bool) {
|
||||
sweeping = true
|
||||
sweep_anchor = RowSlot(index)
|
||||
sweep_value = value
|
||||
SelectionSet(index, value)
|
||||
}
|
||||
|
||||
SweepTo :: (index: s32) {
|
||||
if index < 0 {
|
||||
index = 0
|
||||
}
|
||||
if index >= frame.chat_count {
|
||||
index = frame.chat_count - 1
|
||||
}
|
||||
anchor := SlotRow(sweep_anchor)
|
||||
first := ifx index < anchor then index else anchor
|
||||
last := ifx index < anchor then anchor else index
|
||||
for row: first..last {
|
||||
SelectionSet(row, sweep_value)
|
||||
}
|
||||
}
|
||||
|
||||
// The template with its %d replaced by the count.
|
||||
CountText :: (template: string, count: s32) -> string {
|
||||
out: Vec(u8)
|
||||
at: s64 = 0
|
||||
while at < template.count {
|
||||
if at + 1 < template.count && template[at] == cast(u8)37 && template[at + 1] == cast(u8)100 {
|
||||
BuilderPrint(*out, "%", count)
|
||||
at += 2
|
||||
} else {
|
||||
BuilderPrint(*out, "%", template[at:at + 1])
|
||||
at += 1
|
||||
}
|
||||
}
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
|
||||
SelectedText :: () -> string {
|
||||
out: Vec(u8)
|
||||
written: s32 = 0
|
||||
for index: cast(s32)0..frame.chat_count - 1 {
|
||||
if !IsSelected(index) {
|
||||
continue
|
||||
}
|
||||
if written > 0 {
|
||||
BuilderPrint(*out, "\n\n")
|
||||
}
|
||||
BuilderPrint(*out, "%", ReadLumiChatRowHost(index).text)
|
||||
written += 1
|
||||
}
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
|
||||
// The bar replacing the top of the chat while messages are selected: close,
|
||||
// the count, then copy and delete, with delete asking first.
|
||||
SelectionBar :: (x: s32, top: s32, width: s32) {
|
||||
control := Scale(44)
|
||||
Box(frame.session, BoxProps.{.key = cast(u64)300369,
|
||||
.bounds = Bounds(x - Scale(16), 0, width + Scale(32), top + control + Scale(8)),
|
||||
.fill = frame.background})
|
||||
if confirm_delete {
|
||||
Text(frame.session, TextProps.{.key = cast(u64)300370,
|
||||
.bounds = Bounds(x, top, width - Scale(216), control),
|
||||
.text = LumiViewLocaleHost("lumi_delete_confirm"), .font = frame.font,
|
||||
.wrap = cast(TextWrap)TextWrapAuto, .vertical_align = cast(TextAlign)TextAlignCenter})
|
||||
if Button(frame.session, ButtonProps.{.id = 30020,
|
||||
.bounds = Bounds(x + width - Scale(208), top, Scale(100), control),
|
||||
.label = LumiViewLocaleHost("cancel_button"), .fit_content = true,
|
||||
.tone = cast(ButtonTone)ButtonToneNeutral, .emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft}) != 0 {
|
||||
confirm_delete = false
|
||||
}
|
||||
if Button(frame.session, ButtonProps.{.id = 30021,
|
||||
.bounds = Bounds(x + width - Scale(100), top, Scale(100), control),
|
||||
.label = LumiViewLocaleHost("delete_button"), .fit_content = true,
|
||||
.tone = cast(ButtonTone)ButtonToneDanger, .emphasis = cast(ButtonEmphasis)ButtonEmphasisFilled}) != 0 {
|
||||
// From the last row back, so earlier rows keep their indices.
|
||||
index := frame.chat_count - 1
|
||||
while index >= 0 {
|
||||
if IsSelected(index) {
|
||||
unused LumiDeleteRowHost(index)
|
||||
}
|
||||
index -= 1
|
||||
}
|
||||
SelectionClear()
|
||||
}
|
||||
return
|
||||
}
|
||||
if Button(frame.session, ButtonProps.{.id = 30022, .bounds = Bounds(x, top, control, control),
|
||||
.label = LumiViewLocaleHost("lumi_cancel_selection"), .icon_shape = LUMI_CLOSE_ICON, .icon_only = true,
|
||||
.tone = cast(ButtonTone)ButtonToneNeutral, .emphasis = cast(ButtonEmphasis)ButtonEmphasisGhost}) != 0 {
|
||||
SelectionClear()
|
||||
return
|
||||
}
|
||||
Box(frame.session, BoxProps.{.key = cast(u64)300371,
|
||||
.bounds = Bounds(x + control + Scale(8), top + Scale(6), Scale(150), control - Scale(12)),
|
||||
.fill = Color.{156, 188, 143, 48}, .radius = cast(float32)(control - Scale(12)) / 2.0})
|
||||
Text(frame.session, TextProps.{.key = cast(u64)300372,
|
||||
.bounds = Bounds(x + control + Scale(8), top, Scale(150), control),
|
||||
.text = CountText(LumiViewLocaleHost("lumi_selected_count"), selected_count), .font = frame.font,
|
||||
.wrap = cast(TextWrap)TextWrapNone, .align = cast(TextAlign)TextAlignCenter,
|
||||
.vertical_align = cast(TextAlign)TextAlignCenter})
|
||||
if Button(frame.session, ButtonProps.{.id = 30023,
|
||||
.bounds = Bounds(x + width - 2 * control - Scale(4), top, control, control),
|
||||
.label = LumiViewLocaleHost("lumi_copy"), .icon_shape = LUMI_COPY_ICON, .icon_only = true,
|
||||
.tone = cast(ButtonTone)ButtonToneNeutral, .emphasis = cast(ButtonEmphasis)ButtonEmphasisGhost}) != 0 {
|
||||
pending_copy = SelectedText()
|
||||
copy_pending = true
|
||||
SelectionClear()
|
||||
return
|
||||
}
|
||||
if Button(frame.session, ButtonProps.{.id = 30024,
|
||||
.bounds = Bounds(x + width - control, top, control, control),
|
||||
.label = LumiViewLocaleHost("delete_button"), .icon_shape = LUMI_DELETE_ICON, .icon_only = true,
|
||||
.tone = cast(ButtonTone)ButtonToneDanger, .emphasis = cast(ButtonEmphasis)ButtonEmphasisGhost}) != 0 {
|
||||
confirm_delete = true
|
||||
}
|
||||
}
|
||||
// A rounded square with a slash, and a paper plane, in Kryon's 24 x 24 icon
|
||||
// shape format.
|
||||
LUMI_COMMANDS_ICON :: "S1.8rr:M7 3H17C19.2091 3 21 4.79086 21 7V17C21 19.2091 19.2091 21 17 21H7C4.79086 21 3 19.2091 3 17V7C3 4.79086 4.79086 3 7 3Z|S1.8rr:M14.5 7.5L9.5 16.5"
|
||||
@@ -328,6 +528,60 @@ DonationCard :: (index: s32, x: s32, y: s32, width: s32) {
|
||||
}
|
||||
}
|
||||
|
||||
// Lumi's bubble with three dots that brighten and rise in turn, where its
|
||||
// answer will appear.
|
||||
TypingDots :: (x: s32, top: s32) {
|
||||
left := x + Scale(48)
|
||||
Image(frame.session, ImageProps.{.key = cast(u64)300380,
|
||||
.asset_path = "assets/lumi/mascot.png", .alt_text = "Lumi",
|
||||
.bounds = Bounds(x, top + Scale(16), Scale(40), Scale(40)),
|
||||
.source = Rectangle.{0.0, 0.0, -1254.0, 1254.0},
|
||||
.fit = cast(ImageFit)ImageFitContain})
|
||||
Box(frame.session, BoxProps.{.key = cast(u64)300381,
|
||||
.bounds = Bounds(left, top, Scale(96), Scale(60)),
|
||||
.fill = Color.{156, 156, 156, 24}, .radius = cast(float32)Scale(16)})
|
||||
Text(frame.session, TextProps.{.key = cast(u64)300382,
|
||||
.bounds = Bounds(left + Scale(14), top + Scale(8), Scale(68), Scale(20)),
|
||||
.text = "Lumi", .font = Scale(12)})
|
||||
for dot: cast(s32)0..2 {
|
||||
phase := frame.now * 1.4 - cast(float64)dot * 0.2
|
||||
phase = phase - cast(float64)cast(s64)phase
|
||||
if phase < 0.0 {
|
||||
phase += 1.0
|
||||
}
|
||||
level := ifx phase < 0.5 then phase * 2.0 else (1.0 - phase) * 2.0
|
||||
size := Scale(8)
|
||||
Box(frame.session, BoxProps.{.key = cast(u64)(300383 + dot),
|
||||
.bounds = Bounds(left + Scale(16) + dot * Scale(14),
|
||||
top + Scale(38) - cast(s32)(level * cast(float64)Scale(4)), size, size),
|
||||
.fill = Color.{170, 170, 170, cast(u8)(90.0 + 165.0 * level)},
|
||||
.radius = cast(float32)size / 2.0})
|
||||
}
|
||||
}
|
||||
|
||||
// A row's press: a hold starts selecting, and while selecting a press starts
|
||||
// a sweep that follows the pointer, even off the row and past the chat.
|
||||
RowPress :: (index: s32, bounds: Rectangle, content_y: float32) {
|
||||
key := ifx index == 0 then 0 else RowSlot(index) + 1
|
||||
press := Press(frame.session, PressProps.{.key = cast(u64)(410000 + key), .bounds = bounds,
|
||||
.label = LumiViewLocaleHost("lumi_message"), .now = frame.now, .capture = selecting})
|
||||
if !selecting && press.held {
|
||||
selecting = true
|
||||
confirm_delete = false
|
||||
SweepStart(index, true)
|
||||
} else if selecting && press.down && !sweeping {
|
||||
SweepStart(index, !IsSelected(index))
|
||||
}
|
||||
if sweeping && press.down {
|
||||
sweep_seen = true
|
||||
sweep_pointer_y = press.y
|
||||
SweepTo(LumiFirstVisibleRowHost(cast(s32)(press.y - content_y)))
|
||||
}
|
||||
if press.released {
|
||||
sweeping = false
|
||||
}
|
||||
}
|
||||
|
||||
LumiView :: (message: LumiMessage, commands: LumiCommands, revision: s64) -> LumiMessage {
|
||||
frame = ReadLumiUiHost()
|
||||
column := CenteredColumnFor(frame.width, Scale(720), Scale(16))
|
||||
@@ -389,11 +643,20 @@ LumiView :: (message: LumiMessage, commands: LumiCommands, revision: s64) -> Lum
|
||||
if frame.follow_end {
|
||||
frame.scroll = 1000000
|
||||
}
|
||||
// While Lumi answers, its typing dots follow the last message after a
|
||||
// short pause.
|
||||
typing := frame.waiting && !frame.typing_pause
|
||||
typing_height := ifx typing then Scale(70) else 0
|
||||
history := Scroll(frame.session, ScrollProps.{.key = cast(u64)300100,
|
||||
.bounds = Bounds(x, history_top, width, chat_height),
|
||||
.content_height = frame.history_height, .scroll_offset = frame.scroll, .scale = frame.scale})
|
||||
.content_height = frame.history_height + typing_height, .scroll_offset = frame.scroll, .scale = frame.scale})
|
||||
frame.scroll = history.scroll_offset
|
||||
frame.follow_end = history.scroll_offset == history.max_scroll
|
||||
// Older messages load when the chat reaches its top, and at once while
|
||||
// the loaded ones do not fill the chat, which then cannot scroll.
|
||||
load_older := frame.has_older &&
|
||||
(history.max_scroll <= 0 || (!frame.follow_end && frame.scroll <= Scale(96)))
|
||||
anchor_drawn := false
|
||||
if history.opened {
|
||||
first := LumiFirstVisibleRowHost(history.scroll_offset)
|
||||
top := cast(s32)history.content.y + LumiRowOffsetHost(first)
|
||||
@@ -405,7 +668,20 @@ LumiView :: (message: LumiMessage, commands: LumiCommands, revision: s64) -> Lum
|
||||
row_height := row.height
|
||||
bubble_width := width - Scale(ifx row.user then 60 else 80)
|
||||
left := x + Scale(48)
|
||||
if !row.user {
|
||||
// The whole row takes holds and sweeps; its buttons sit above it.
|
||||
RowPress(index, Bounds(x, top, width, row_height - Scale(10)), history.content.y)
|
||||
if RowSlot(index) == sweep_anchor {
|
||||
anchor_drawn = true
|
||||
}
|
||||
if selecting {
|
||||
checked := IsSelected(index)
|
||||
toggled := Checkbox(frame.session, CheckboxProps.{.key = cast(u64)(420000 + RowSlot(index) + 1),
|
||||
.bounds = Bounds(x + Scale(8), top + (row_height - Scale(10)) / 2 - Scale(12), Scale(24), Scale(24)),
|
||||
.label = LumiViewLocaleHost("lumi_message"), .checked = checked})
|
||||
if toggled.changed {
|
||||
SelectionSet(index, toggled.checked)
|
||||
}
|
||||
} else if !row.user {
|
||||
Image(frame.session, ImageProps.{.key = cast(u64)(300400 + index * 4),
|
||||
.asset_path = "assets/lumi/mascot.png", .alt_text = "Lumi",
|
||||
.bounds = Bounds(x, top + row_height - Scale(54), Scale(40), Scale(40)),
|
||||
@@ -428,7 +704,7 @@ LumiView :: (message: LumiMessage, commands: LumiCommands, revision: s64) -> Lum
|
||||
props := TextProps.{.key = cast(u64)(300403 + index * 4),
|
||||
.bounds = Bounds(left + Scale(14), top + text_top,
|
||||
bubble_width - Scale(28), text_height),
|
||||
.text = row.text, .font = frame.font, .selectable = true,
|
||||
.text = row.text, .font = frame.font,
|
||||
.wrap = cast(TextWrap)TextWrapAuto}
|
||||
if !row.user {
|
||||
formatted := ReplyText(index, row.text)
|
||||
@@ -456,8 +732,52 @@ LumiView :: (message: LumiMessage, commands: LumiCommands, revision: s64) -> Lum
|
||||
}
|
||||
top += row_height
|
||||
}
|
||||
if typing {
|
||||
TypingDots(x, cast(s32)history.content.y + frame.history_height)
|
||||
}
|
||||
// Scrolling can carry the row the sweep began on out of view; its
|
||||
// press stays registered so the sweep goes on.
|
||||
if sweeping && !anchor_drawn {
|
||||
anchor := SlotRow(sweep_anchor)
|
||||
if anchor >= 0 && anchor < frame.chat_count {
|
||||
anchor_top := cast(s32)history.content.y + LumiRowOffsetHost(anchor)
|
||||
RowPress(anchor, Bounds(x, anchor_top, width,
|
||||
ReadLumiChatRowHost(anchor).height - Scale(10)), history.content.y)
|
||||
}
|
||||
}
|
||||
End(frame.session)
|
||||
}
|
||||
// Dragging near the chat's top or bottom scrolls it, faster nearer the
|
||||
// edge, so a sweep can reach every message.
|
||||
if sweeping && sweep_seen {
|
||||
edge := cast(float32)Scale(56)
|
||||
top_edge := cast(float32)Scale(60) + edge
|
||||
bottom_edge := cast(float32)(history_top + chat_height) - edge
|
||||
if sweep_pointer_y < top_edge {
|
||||
step := cast(s32)((top_edge - sweep_pointer_y) / 3.0) + Scale(4)
|
||||
if step > Scale(40) {
|
||||
step = Scale(40)
|
||||
}
|
||||
frame.scroll -= step
|
||||
if frame.scroll < 0 {
|
||||
frame.scroll = 0
|
||||
}
|
||||
frame.follow_end = false
|
||||
} else if sweep_pointer_y > bottom_edge {
|
||||
step := cast(s32)((sweep_pointer_y - bottom_edge) / 3.0) + Scale(4)
|
||||
if step > Scale(40) {
|
||||
step = Scale(40)
|
||||
}
|
||||
frame.scroll += step
|
||||
}
|
||||
}
|
||||
sweep_seen = false
|
||||
if selecting && selected_count <= 0 && !sweeping {
|
||||
SelectionClear()
|
||||
}
|
||||
if selecting {
|
||||
SelectionBar(x, Scale(12), width)
|
||||
}
|
||||
typed := LumiTrim(frame.value)
|
||||
candidates: [20]string = .[commands.start_whm, commands.complete_habit,
|
||||
commands.start_meditation, commands.start_sun, commands.start_patterns,
|
||||
@@ -636,6 +956,11 @@ LumiView :: (message: LumiMessage, commands: LumiCommands, revision: s64) -> Lum
|
||||
}
|
||||
frame.clipboard_write = field.clipboard_write
|
||||
frame.clipboard_text = field.clipboard_text
|
||||
if copy_pending {
|
||||
frame.clipboard_write = true
|
||||
frame.clipboard_text = pending_copy
|
||||
copy_pending = false
|
||||
}
|
||||
send := !show_commands && Button(frame.session, ButtonProps.{.id = 30011,
|
||||
.bounds = Bounds(x + width - Scale(48), footer, Scale(48), Scale(48)),
|
||||
.label = LumiViewLocaleHost("lumi_send"), .icon_shape = LUMI_SEND_ICON, .icon_only = true,
|
||||
@@ -674,7 +999,7 @@ LumiView :: (message: LumiMessage, commands: LumiCommands, revision: s64) -> Lum
|
||||
frame.follow_end = true
|
||||
}
|
||||
WriteLumiUiHost(frame)
|
||||
if message.action != LUMI_SEND && frame.has_older && !frame.follow_end && frame.scroll <= Scale(96) {
|
||||
if message.action != LUMI_SEND && load_older {
|
||||
unused LumiLoadOlderHost()
|
||||
}
|
||||
return message
|
||||
|
||||
@@ -1,48 +1,56 @@
|
||||
{
|
||||
"host_api": 5,
|
||||
"host_api": 7,
|
||||
"oldest_host_api": 5,
|
||||
"module_api": 2,
|
||||
"apps": {
|
||||
"inbe": {
|
||||
"id": "inbe",
|
||||
"version": "2.1.25",
|
||||
"sequence": 22,
|
||||
"bundled": true
|
||||
"version": "2.1.29",
|
||||
"sequence": 26,
|
||||
"bundled": true,
|
||||
"host_api": 7
|
||||
},
|
||||
"habits": {
|
||||
"id": "inbe.habits",
|
||||
"version": "1.0.4",
|
||||
"sequence": 5,
|
||||
"bundled": true
|
||||
"bundled": true,
|
||||
"host_api": 5
|
||||
},
|
||||
"practices": {
|
||||
"id": "inbe.practices",
|
||||
"version": "1.1.4",
|
||||
"sequence": 6,
|
||||
"bundled": true
|
||||
"bundled": true,
|
||||
"host_api": 5
|
||||
},
|
||||
"lists": {
|
||||
"id": "inbe.lists",
|
||||
"version": "1.0.4",
|
||||
"sequence": 5,
|
||||
"bundled": true
|
||||
"version": "1.0.5",
|
||||
"sequence": 6,
|
||||
"bundled": true,
|
||||
"host_api": 5
|
||||
},
|
||||
"diary": {
|
||||
"id": "inbe.diary",
|
||||
"version": "1.1.7",
|
||||
"sequence": 9,
|
||||
"bundled": true
|
||||
"version": "1.1.9",
|
||||
"sequence": 11,
|
||||
"bundled": true,
|
||||
"host_api": 7
|
||||
},
|
||||
"lumi": {
|
||||
"id": "inbe.lumi",
|
||||
"version": "1.3.5",
|
||||
"sequence": 12,
|
||||
"bundled": true
|
||||
"version": "1.3.9",
|
||||
"sequence": 16,
|
||||
"bundled": true,
|
||||
"host_api": 7
|
||||
},
|
||||
"leaderboard": {
|
||||
"id": "inbe.leaderboard",
|
||||
"version": "1.0.0",
|
||||
"sequence": 1,
|
||||
"bundled": true
|
||||
"version": "1.0.1",
|
||||
"sequence": 2,
|
||||
"bundled": true,
|
||||
"host_api": 5
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -218,6 +218,209 @@
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "set_habit_schedule",
|
||||
"description": "Set which days a habit is planned, from today on, using its exact ID, and whether it sends a notification on those days. Earlier days keep the schedule they had, and nothing recorded is removed. repeat daily, weekly, monthly or yearly repeats every N (every) days, weeks, months or years from start. weekly plans weekdays. monthly plans month_days (31 also means a shorter month's last day) and last_day_of_month, or with week_of_month the weekdays in that week, such as the last fri. yearly repeats on start's month and day. formula plans each day where formula is not 0; its numbers are days, weeks, months and years since start, weekday (mon 1 to sun 7), day, month, year, yearday, daysleft (in the month) and nth (which such weekday of the month), with + - * / %, = != < > <= >=, and, or, not and parentheses, for example days % 3 = 0. none plans no days.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"repeat": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"daily",
|
||||
"weekly",
|
||||
"monthly",
|
||||
"yearly",
|
||||
"formula",
|
||||
"none"
|
||||
]
|
||||
},
|
||||
"every": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 999
|
||||
},
|
||||
"weekdays": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"mon",
|
||||
"tue",
|
||||
"wed",
|
||||
"thu",
|
||||
"fri",
|
||||
"sat",
|
||||
"sun"
|
||||
]
|
||||
}
|
||||
},
|
||||
"month_days": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 31
|
||||
}
|
||||
},
|
||||
"last_day_of_month": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"week_of_month": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"first",
|
||||
"second",
|
||||
"third",
|
||||
"fourth",
|
||||
"fifth",
|
||||
"last"
|
||||
]
|
||||
},
|
||||
"start": {
|
||||
"type": "string",
|
||||
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
|
||||
},
|
||||
"formula": {
|
||||
"type": "string",
|
||||
"maxLength": 119
|
||||
},
|
||||
"notification": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"notification_hour": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 23
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"repeat"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "set_habit_questions",
|
||||
"description": "Set the questions a habit asks when a day is done, using its exact ID. They replace its questions; a question with the same words as one it has keeps that question's past answers. Each question is answered as text, number (a whole number), time (H:MM) or yes_no. good says which answers are good: above_average or below_average for numbers and times judges each answer against the average of the answers before it (higher or lower is better; for times below means earlier), at_least, at_most or between low and high for numbers (whole numbers) and times (H:MM, where at_least means after and at_most before, and between a later and an earlier time spans midnight), yes or no for yes_no questions, or none. Without good, numbers are good above their average and times below it. With an empty list the habit asks nothing.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"questions": {
|
||||
"type": "array",
|
||||
"maxItems": 8,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"text": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 95
|
||||
},
|
||||
"answer": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"text",
|
||||
"number",
|
||||
"time",
|
||||
"yes_no"
|
||||
]
|
||||
},
|
||||
"good": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"none",
|
||||
"above_average",
|
||||
"below_average",
|
||||
"at_least",
|
||||
"at_most",
|
||||
"between",
|
||||
"yes",
|
||||
"no"
|
||||
]
|
||||
},
|
||||
"low": {
|
||||
"type": [
|
||||
"integer",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"high": {
|
||||
"type": [
|
||||
"integer",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"text",
|
||||
"answer"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"questions"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "set_habit_tracking",
|
||||
"description": "Set how a habit tracks a day, using its exact ID: check marks the day done, count counts up to target a day, and span measures from a start to an end, where a tap starts it and the next ends it, for example a fasting window. A habit counts or measures spans, not both. For spans, good says which are good by their length: at_least, at_most or between low and high, written as hours and minutes H:MM (for example at_most 8:00 for an 8 hour eating window, at_least 16:00 for a fast), below_average for shorter than the average of the spans before (the default), above_average for longer, or none.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"mode": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"check",
|
||||
"count",
|
||||
"span"
|
||||
]
|
||||
},
|
||||
"target": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 9999
|
||||
},
|
||||
"good": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"none",
|
||||
"above_average",
|
||||
"below_average",
|
||||
"at_least",
|
||||
"at_most",
|
||||
"between"
|
||||
]
|
||||
},
|
||||
"low": {
|
||||
"type": "string"
|
||||
},
|
||||
"high": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"mode"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "write_diary",
|
||||
"description": "Append the requested text to today's diary with the current time. Preserve the user's wording.",
|
||||
|
||||
@@ -36,6 +36,9 @@ Text.review-changed {
|
||||
Text.review-detail {
|
||||
foreground: muted;
|
||||
}
|
||||
Text.muted-detail {
|
||||
foreground: muted;
|
||||
}
|
||||
Text.review-heading {
|
||||
foreground: text;
|
||||
}
|
||||
@@ -55,8 +58,9 @@ Text.practice-heading {
|
||||
Text.selected-navigation {
|
||||
foreground: text;
|
||||
}
|
||||
// Counts and times drawn on the accent circle use the accent's own ink.
|
||||
Text.circle-ink {
|
||||
foreground: #171022;
|
||||
foreground: accent-ink;
|
||||
}
|
||||
|
||||
// Style packs pair their own accent-soft with accent text. Inbe replaces
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
# Tai Chi course animation
|
||||
|
||||
A complete Yang-style 24-form course for Inner Breeze, built as data first:
|
||||
a 3D rig, a pose solver, choreography written as code, a Three.js review
|
||||
studio, automatic motion checks and headless review renders. Inbe's own
|
||||
code does not use any of this yet; how the app plays the course is decided
|
||||
later (see "App playback" below).
|
||||
|
||||
## Course
|
||||
|
||||
- **Foundations**: posture and breathing, warm-up, standing meditation,
|
||||
stances, stepping and hand shapes, each as short drills.
|
||||
- **Lessons 1–8**: the 24 movements in the usual eight groups. Every
|
||||
movement has three versions: a *demo* at normal speed, a *breakdown* that
|
||||
plays slower and pauses on every step with its cue, and a *follow-along*
|
||||
that does the movement, steps into the mirrored start, does it on the
|
||||
other side and returns.
|
||||
- **Full form**: normal tempo (front view, mirrored, so it moves like your
|
||||
reflection) and a slow learning tempo (from behind).
|
||||
|
||||
## Run
|
||||
|
||||
```sh
|
||||
cd design/tai-chi
|
||||
npm install # Three.js, pinned in package.json
|
||||
node tools/serve.mjs # studio at http://127.0.0.1:8771/ (opens on the full form)
|
||||
node tools/check.mjs # motion checks for every item and figure
|
||||
node tools/render.mjs --item lesson-2/brush-knee/demo --stills 3,6,9 --label
|
||||
node tools/render.mjs --lessons --full --label # an MP4 per lesson and the full form
|
||||
node tools/export.mjs [--bake] # writes docs/tai-chi-24.json
|
||||
```
|
||||
|
||||
Renders run headless Chromium with SwiftShader and no display; the
|
||||
inherited display and session variables are removed from its environment.
|
||||
Output goes to `build/tai-chi/` (ignored).
|
||||
|
||||
Studio keys: Space plays, ←/→ step a frame (Shift: a second), `[`/`]`
|
||||
jump between cued steps, 1–6 switch views. Dragging the view switches to
|
||||
the free orbit camera.
|
||||
|
||||
## Painted characters
|
||||
|
||||
The studio opens on the full form with the painted Tibetan monk: a 2D
|
||||
cut-out puppet in the hand-painted style of Sun Salutation, drawn over the
|
||||
same solved body as the 3D figures, so every lesson, version and the full
|
||||
form play with it. The second painted character is a Tibetan woman (braids
|
||||
wound round her head, teal wrap vest, pangden-striped sash). Pick them in the
|
||||
figure buttons (`?figure=monk`, `?figure=tibetanWoman`); the 3D figures are
|
||||
still there.
|
||||
|
||||
- `characters/<id>/source/` keeps the generated turnaround and part sheets
|
||||
with their prompts (Codex built-in image generation, the turnaround and
|
||||
the approved Sun Salutation characters as references).
|
||||
- `tools/cut-parts.py characters/<id>` cuts the sheets listed in
|
||||
`sheets.json` into transparent `parts/`, recovering edges from the white
|
||||
background and fading the cut edges that another part covers (hand into
|
||||
forearm, ankle into trouser cuff).
|
||||
- `characters/<id>/character.json` names each part's points as fractions of
|
||||
its image: the neck and hips of the five torso views, the armholes, the
|
||||
neck of the five head views, wrist and fingertips of the hands, heel and
|
||||
toe of the shoes.
|
||||
- `src/painted/figure.js` projects the solved joints flat along the view
|
||||
and places the paintings as textured meshes in an orthographic scene:
|
||||
arms and legs bend along their projected bones, the torso follows the
|
||||
projected spine, and the head, torso, hands and shoes switch between
|
||||
front, three-quarter, side, three-quarter back and back drawings as they
|
||||
turn (mirrored for the other side, with a little hysteresis so a part on
|
||||
a boundary does not flicker). Hands pick palm, back, edge, fist or hook
|
||||
drawings from the hand's shape and which way the palm faces. Back arms,
|
||||
legs, head, torso and front arms are drawn in that order.
|
||||
|
||||
## How it works
|
||||
|
||||
- `src/rig.js`: proportions as fractions of height, per figure.
|
||||
- `src/pose.js`: the pose description (feet, weight, sinking, waist,
|
||||
hands in chest axes, gaze) and mirroring.
|
||||
- `src/form.js`: the choreography builder. Each key edits a copy of the
|
||||
previous pose with side-relative calls (`place`, `pivot`, `load`, `waist`,
|
||||
`hand`, `look`…), so the same code runs mirrored. Weight leaves a foot
|
||||
before it steps, and a loaded foot waits for the weight to go before it
|
||||
turns.
|
||||
- `src/timeline.js`: monotone curves for the body (no overshoot), smooth
|
||||
arcs for the hands, and feet that pivot exactly about the heel or ball or
|
||||
lift off to step: planted feet never slide.
|
||||
- `src/solve.js`: inverse kinematics for legs (knees track the toes) and
|
||||
arms, spine twist, gaze that follows a hand, heels that rise when a light
|
||||
back foot cannot reach, and a centre of mass placed over the weighted
|
||||
contact between the feet.
|
||||
- `src/checks.js`: foot sliding and floating, knee tracking, knee past the
|
||||
toes, knee and wrist limits, arms locked out, hands in the body, feet and
|
||||
knees colliding, balance over the feet, speed and jumps, facing at the end
|
||||
of each movement, and the full form's duration.
|
||||
- `form/`: the choreography. `lessonN.js` exports the lesson's movements;
|
||||
`boundaries.js` holds the poses where lessons hand over.
|
||||
- `src/view/`: the stage, camera views, the mannequin and the two 3D
|
||||
characters (Sage Bun and Sage Male); `src/painted/` the painted 2D
|
||||
figures (see above).
|
||||
|
||||
## App playback
|
||||
|
||||
Pre-rendered frames do not fit: Sun Salutation's 991 frames per character
|
||||
are about 10 MB, and the app package budget is 38 MB in total, while the
|
||||
24-form at the same frame rate would be about 100 MB per character. The
|
||||
exported keyed poses for the whole course are about 350 KB (21 KB
|
||||
gzipped); the full form baked to joint rotations at 30 fps is about 1.8 MB
|
||||
per figure (1.2 MB gzipped). Either needs a player in
|
||||
the app, which means a reusable 3D or projected-skeleton primitive in Kryon
|
||||
first. That is a separate decision.
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"id": "monk",
|
||||
"name": "Tibetan Monk",
|
||||
"figure": "monk",
|
||||
"note": "Points are fractions of each part image: [x from the left, y from the top]. Views are painted facing the image's right; the renderer mirrors them for the other side.",
|
||||
"head": {
|
||||
"neck": "the middle of the cut at the bottom of the neck",
|
||||
"views": {
|
||||
"front": { "file": "parts/head-front.png", "neck": [0.5, 0.97] },
|
||||
"threeQuarter": { "file": "parts/head-three-quarter.png", "neck": [0.42, 0.97] },
|
||||
"side": { "file": "parts/head-side.png", "neck": [0.36, 0.97] },
|
||||
"threeQuarterBack": { "file": "parts/head-three-quarter-back.png", "neck": [0.38, 0.97] },
|
||||
"back": { "file": "parts/head-back.png", "neck": [0.49, 0.97] }
|
||||
}
|
||||
},
|
||||
"torso": {
|
||||
"views": {
|
||||
"front": { "file": "parts/torso-front.png", "neck": [0.5, 0.1], "hip": [0.5, 0.93], "shoulders": [[0.1, 0.15], [0.9, 0.15]] },
|
||||
"threeQuarter": { "file": "parts/torso-three-quarter.png", "neck": [0.53, 0.1], "hip": [0.5, 0.93], "shoulders": [[0.14, 0.17], [0.88, 0.15]] },
|
||||
"side": { "file": "parts/torso-side.png", "neck": [0.52, 0.07], "hip": [0.5, 0.93], "shoulders": [[0.38, 0.17], [0.46, 0.15]] },
|
||||
"threeQuarterBack": { "file": "parts/torso-three-quarter-back.png", "neck": [0.5, 0.08], "hip": [0.5, 0.93], "shoulders": [[0.08, 0.16], [0.86, 0.17]] },
|
||||
"back": { "file": "parts/torso-back.png", "neck": [0.5, 0.07], "hip": [0.5, 0.93], "shoulders": [[0.08, 0.15], [0.92, 0.15]] }
|
||||
}
|
||||
},
|
||||
"arm": { "file": "parts/arm.png", "root": [0.5, 0.09], "end": [0.5, 0.96], "anterior": 1, "thickness": 0.62 },
|
||||
"leg": { "file": "parts/leg.png", "root": [0.5, 0.05], "end": [0.5, 0.94], "anterior": 1, "thickness": 0.66 },
|
||||
"hands": {
|
||||
"scale": "the palm's wrist-to-fingertip length is the rig's hand length; every hand drawing shares its scale",
|
||||
"palm": { "file": "parts/hand-palm.png", "wrist": [0.5, 0.97], "tip": [0.55, 0.01], "across": "thumb", "sign": 1 },
|
||||
"back": { "file": "parts/hand-back.png", "wrist": [0.5, 0.97], "tip": [0.48, 0.01], "across": "thumb", "sign": -1 },
|
||||
"edge": { "file": "parts/hand-edge.png", "wrist": [0.5, 0.98], "tip": [0.45, 0.01], "across": "palm", "sign": 1 },
|
||||
"fistFront": { "file": "parts/fist-front.png", "wrist": [0.5, 0.97], "tip": [0.5, 0.02], "across": "thumb", "sign": 1 },
|
||||
"fistSide": { "file": "parts/fist-side.png", "wrist": [0.42, 0.97], "tip": [0.5, 0.02], "across": "palm", "sign": 1 },
|
||||
"hook": { "file": "parts/hook.png", "wrist": [0.2, 0.97], "tip": [0.76, 0.86], "across": "palm", "sign": 1 }
|
||||
},
|
||||
"shoes": {
|
||||
"scale": "the outer profile's heel-to-toe length is the rig's foot length; every shoe drawing shares its scale",
|
||||
"outer": { "file": "parts/shoe-outer.png", "heel": [0.03, 0.955], "toe": [0.985, 0.955] },
|
||||
"inner": { "file": "parts/shoe-inner.png", "heel": [0.03, 0.955], "toe": [0.985, 0.955] },
|
||||
"front": { "file": "parts/shoe-front.png", "ankle": [0.5, 0.55] },
|
||||
"back": { "file": "parts/shoe-back.png", "ankle": [0.5, 0.56] },
|
||||
"threeQuarter": { "file": "parts/shoe-three-quarter.png", "ankle": [0.3, 0.52] },
|
||||
"threeQuarterBack": { "file": "parts/shoe-three-quarter-back.png", "ankle": [0.3, 0.5] }
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 74 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 74 KiB |
|
After Width: | Height: | Size: 100 KiB |
@@ -0,0 +1,266 @@
|
||||
{
|
||||
"head-front": {
|
||||
"size": [
|
||||
195,
|
||||
272
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
65,
|
||||
125
|
||||
]
|
||||
},
|
||||
"head-three-quarter": {
|
||||
"size": [
|
||||
195,
|
||||
275
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
372,
|
||||
122
|
||||
]
|
||||
},
|
||||
"head-side": {
|
||||
"size": [
|
||||
218,
|
||||
273
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
666,
|
||||
124
|
||||
]
|
||||
},
|
||||
"head-three-quarter-back": {
|
||||
"size": [
|
||||
202,
|
||||
270
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
965,
|
||||
121
|
||||
]
|
||||
},
|
||||
"head-back": {
|
||||
"size": [
|
||||
204,
|
||||
272
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
1270,
|
||||
121
|
||||
]
|
||||
},
|
||||
"torso-front": {
|
||||
"size": [
|
||||
278,
|
||||
455
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
23,
|
||||
464
|
||||
]
|
||||
},
|
||||
"torso-three-quarter": {
|
||||
"size": [
|
||||
272,
|
||||
458
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
342,
|
||||
461
|
||||
]
|
||||
},
|
||||
"torso-side": {
|
||||
"size": [
|
||||
218,
|
||||
453
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
660,
|
||||
460
|
||||
]
|
||||
},
|
||||
"torso-three-quarter-back": {
|
||||
"size": [
|
||||
256,
|
||||
455
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
922,
|
||||
463
|
||||
]
|
||||
},
|
||||
"torso-back": {
|
||||
"size": [
|
||||
285,
|
||||
459
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
1229,
|
||||
460
|
||||
]
|
||||
},
|
||||
"arm": {
|
||||
"size": [
|
||||
129,
|
||||
480
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
150,
|
||||
27
|
||||
]
|
||||
},
|
||||
"leg": {
|
||||
"size": [
|
||||
165,
|
||||
491
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
504,
|
||||
18
|
||||
]
|
||||
},
|
||||
"hand-palm": {
|
||||
"size": [
|
||||
178,
|
||||
348
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
881,
|
||||
116
|
||||
]
|
||||
},
|
||||
"hand-back": {
|
||||
"size": [
|
||||
182,
|
||||
348
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
1231,
|
||||
116
|
||||
]
|
||||
},
|
||||
"hand-edge": {
|
||||
"size": [
|
||||
104,
|
||||
373
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
168,
|
||||
562
|
||||
]
|
||||
},
|
||||
"fist-front": {
|
||||
"size": [
|
||||
194,
|
||||
253
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
473,
|
||||
650
|
||||
]
|
||||
},
|
||||
"fist-side": {
|
||||
"size": [
|
||||
169,
|
||||
271
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
866,
|
||||
643
|
||||
]
|
||||
},
|
||||
"hook": {
|
||||
"size": [
|
||||
227,
|
||||
286
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
1232,
|
||||
606
|
||||
]
|
||||
},
|
||||
"shoe-outer": {
|
||||
"size": [
|
||||
414,
|
||||
266
|
||||
],
|
||||
"sheet": "source/atlas-shoes.png",
|
||||
"at": [
|
||||
68,
|
||||
139
|
||||
]
|
||||
},
|
||||
"shoe-inner": {
|
||||
"size": [
|
||||
434,
|
||||
266
|
||||
],
|
||||
"sheet": "source/atlas-shoes.png",
|
||||
"at": [
|
||||
582,
|
||||
137
|
||||
]
|
||||
},
|
||||
"shoe-front": {
|
||||
"size": [
|
||||
215,
|
||||
298
|
||||
],
|
||||
"sheet": "source/atlas-shoes.png",
|
||||
"at": [
|
||||
1172,
|
||||
132
|
||||
]
|
||||
},
|
||||
"shoe-back": {
|
||||
"size": [
|
||||
211,
|
||||
309
|
||||
],
|
||||
"sheet": "source/atlas-shoes.png",
|
||||
"at": [
|
||||
145,
|
||||
567
|
||||
]
|
||||
},
|
||||
"shoe-three-quarter": {
|
||||
"size": [
|
||||
387,
|
||||
319
|
||||
],
|
||||
"sheet": "source/atlas-shoes.png",
|
||||
"at": [
|
||||
598,
|
||||
567
|
||||
]
|
||||
},
|
||||
"shoe-three-quarter-back": {
|
||||
"size": [
|
||||
339,
|
||||
305
|
||||
],
|
||||
"sheet": "source/atlas-shoes.png",
|
||||
"at": [
|
||||
1122,
|
||||
567
|
||||
]
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 74 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 105 KiB |
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 121 KiB |
|
After Width: | Height: | Size: 179 KiB |
|
After Width: | Height: | Size: 181 KiB |
|
After Width: | Height: | Size: 141 KiB |
|
After Width: | Height: | Size: 169 KiB |
|
After Width: | Height: | Size: 181 KiB |
@@ -0,0 +1,142 @@
|
||||
{
|
||||
"sheets": [
|
||||
{
|
||||
"file": "source/atlas-body.png",
|
||||
"grid": [
|
||||
5,
|
||||
2
|
||||
],
|
||||
"rowEdges": [
|
||||
0,
|
||||
428,
|
||||
1024
|
||||
],
|
||||
"tiles": [
|
||||
"head-front",
|
||||
"head-three-quarter",
|
||||
"head-side",
|
||||
"head-three-quarter-back",
|
||||
"head-back",
|
||||
"torso-front",
|
||||
"torso-three-quarter",
|
||||
"torso-side",
|
||||
"torso-three-quarter-back",
|
||||
"torso-back"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "source/atlas-limbs.png",
|
||||
"grid": [
|
||||
4,
|
||||
2
|
||||
],
|
||||
"tiles": [
|
||||
"arm",
|
||||
"leg",
|
||||
"hand-palm",
|
||||
"hand-back",
|
||||
"hand-edge",
|
||||
"fist-front",
|
||||
"fist-side",
|
||||
"hook"
|
||||
],
|
||||
"fade": {
|
||||
"arm": {
|
||||
"bottom": [
|
||||
0.95,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"hand-palm": {
|
||||
"bottom": [
|
||||
0.92,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"hand-back": {
|
||||
"bottom": [
|
||||
0.92,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"hand-edge": {
|
||||
"bottom": [
|
||||
0.92,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"fist-front": {
|
||||
"bottom": [
|
||||
0.92,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"fist-side": {
|
||||
"bottom": [
|
||||
0.92,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"hook": {
|
||||
"bottom": [
|
||||
0.92,
|
||||
1.0
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"file": "source/atlas-shoes.png",
|
||||
"grid": [
|
||||
3,
|
||||
2
|
||||
],
|
||||
"tiles": [
|
||||
"shoe-outer",
|
||||
"shoe-inner",
|
||||
"shoe-front",
|
||||
"shoe-back",
|
||||
"shoe-three-quarter",
|
||||
"shoe-three-quarter-back"
|
||||
],
|
||||
"fade": {
|
||||
"shoe-outer": {
|
||||
"top": [
|
||||
0.22,
|
||||
0.32
|
||||
]
|
||||
},
|
||||
"shoe-inner": {
|
||||
"top": [
|
||||
0.22,
|
||||
0.32
|
||||
]
|
||||
},
|
||||
"shoe-front": {
|
||||
"top": [
|
||||
0.3,
|
||||
0.42
|
||||
]
|
||||
},
|
||||
"shoe-back": {
|
||||
"top": [
|
||||
0.3,
|
||||
0.42
|
||||
]
|
||||
},
|
||||
"shoe-three-quarter": {
|
||||
"top": [
|
||||
0.2,
|
||||
0.3
|
||||
]
|
||||
},
|
||||
"shoe-three-quarter-back": {
|
||||
"top": [
|
||||
0.2,
|
||||
0.3
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
Use your built-in image generation tool to create exactly ONE image (landscape 1536x1024). Do not write code or files yourself; just generate the image.
|
||||
|
||||
Asset: a cut-out parts sheet with TEN pieces in FIVE equal columns and TWO rows. The five columns are the five turnaround views of reference image 1, in the same order: (1) front view, (2) three-quarter front view turned toward the image's right, (3) exact right-facing side profile, (4) three-quarter back view turning away toward the right, (5) back view.
|
||||
Row 1, one per column: the monk's HEAD with the COMPLETE BARE NECK in that view. The neck continues straight down below the jaw and ends in a plain horizontal cut at the base of the neck. Head and neck only: no shoulders, no collarbones, no clothing, no piping.
|
||||
Row 2, one per column: the monk's TORSO garment panel in that same view: the saffron dhonka from the shoulders down to the hem at the hips, with the blue-piped crossed neckline, blue-piped armholes and the maroon sash at the waist. NO head, NO neck, NO arms: the armholes are closed with the blue piping where the arms will be attached as separate pieces. In the front and three-quarter front views, the small triangle of bare chest skin inside the crossed neckline is painted. The torso panels are drawn upright and at the same scale as each other, all hems on one line.
|
||||
All ten pieces share one scale: each head is about one seventh of the full body height, as in reference image 1.
|
||||
|
After Width: | Height: | Size: 1.6 MiB |
@@ -0,0 +1,6 @@
|
||||
Use your built-in image generation tool to create exactly ONE image (landscape 1536x1024). Do not write code or files yourself; just generate the image.
|
||||
|
||||
Asset: a cut-out parts sheet with EIGHT pieces in FOUR equal columns and TWO rows, all at the scale of reference image 1.
|
||||
Row 1: (1) one straight BARE ARM hanging perfectly vertically, from the rounded shoulder cap at the top to the wrist at the bottom, seen from the outer side, warm medium-brown skin, NO hand (cut cleanly at the wrist), no clothing; (2) one straight loose deep-maroon TROUSER LEG hanging perfectly vertically, from a horizontal cut at the upper hip at the top down to the gathered elastic ankle cuff at the bottom, NO foot and no shoe, seen from the side; (3) an open relaxed RIGHT HAND, PALM facing the viewer, fingers together pointing straight UP, thumb relaxed at the side, the wrist cut cleanly at the bottom; (4) an open relaxed RIGHT HAND, BACK of the hand facing the viewer, fingers together pointing straight UP, wrist cut at the bottom.
|
||||
Row 2: (5) an open flat hand seen exactly EDGE-ON from the THUMB side, fingers together pointing straight UP, wrist cut at the bottom; (6) a loose FIST seen from the front, the knuckles and backs of the fingers toward the viewer, wrist cut at the bottom; (7) a loose FIST seen from the THUMB side, the thumb resting over the curled fingers, wrist cut at the bottom; (8) a Tai Chi HOOK HAND seen from the side: the wrist at the bottom, the back of the hand rising from the wrist and bending over so all five fingertips gather together into a single point that hangs downward, like a crane's beak.
|
||||
All hands are the same size and skin colour as each other.
|
||||
|
After Width: | Height: | Size: 1.2 MiB |
@@ -0,0 +1,5 @@
|
||||
Use your built-in image generation tool to create exactly ONE image (landscape 1536x1024). Do not write code or files yourself; just generate the image.
|
||||
|
||||
Asset: a cut-out parts sheet with SIX pieces in THREE equal columns and TWO rows: the monk's black cloth slip-on SHOE worn on his bare foot, each with a short piece of the bare ankle rising above the shoe opening and cut off horizontally just above the ankle bone, all at the same scale. Matte black cotton uppers, thin light-beige soles.
|
||||
Row 1: (1) the right foot in exact SIDE PROFILE pointing to the image's RIGHT, seen from the outer side, the sole flat and horizontal; (2) the left foot in exact SIDE PROFILE pointing to the image's RIGHT, seen from the inner (arch) side, the sole flat and horizontal; (3) the foot seen exactly from the FRONT, toe pointing at the viewer.
|
||||
Row 2: (4) the foot seen exactly from BEHIND, heel toward the viewer; (5) the foot in THREE-QUARTER FRONT view, toe pointing toward the viewer and to the image's right; (6) the foot in THREE-QUARTER BACK view, heel toward the viewer and toe pointing away to the image's right.
|
||||
|
After Width: | Height: | Size: 1.3 MiB |
@@ -0,0 +1,3 @@
|
||||
Reference image 1 is the approved turnaround of this exact Tibetan monk: copy his face, shaved head, warm medium-brown skin, saffron-yellow sleeveless dhonka with thin royal-blue piping, deep maroon waist sash, loose deep-maroon trousers gathered at the ankles, black cloth shoes, colours, line quality and painting style exactly. Reference image 2 is the app's style reference (warm hand-painted storybook look, matte gouache/watercolor textures, subtle paper grain, restrained warm brown contour lines).
|
||||
These are separate cut-out pieces for a 2D puppet animation: every piece is isolated, complete, centred in its own equal tile with generous white margins, never touching or overlapping another piece, with its own closed contour line.
|
||||
Background: perfectly flat plain pure white (#FFFFFF), no floor, no shadows, no gradients, no grid lines, no tile borders, no text, no labels, no numbers. No extra pieces.
|
||||
@@ -0,0 +1,11 @@
|
||||
Use your built-in image generation tool to create exactly ONE image (landscape 1536x1024). Do not write any code or files yourself; just generate the image.
|
||||
|
||||
Use case: character turnaround sheet for a 2D cut-out animation of the Yang Tai Chi 24-form in the Inner Breeze meditation app.
|
||||
Reference image 1 shows the app's existing approved characters: match their illustration style exactly (warm hand-painted storybook look, matte gouache/watercolor textures, subtle paper grain inside painted areas, restrained warm brown contour lines, natural adult proportions, calm faces with small relaxed eyes).
|
||||
|
||||
Character: a young adult Tibetan Buddhist monk, about 30 years old, slim and calm. Clean-shaven head with a smooth natural scalp, warm medium-brown skin, gentle peaceful face with small relaxed dark eyes and a faint kind smile, natural ears.
|
||||
Clothing (Tai Chi practice outfit in traditional Tibetan monastic colours): a sleeveless saffron-yellow dhonka shirt with a crossed wrap neckline and thin royal-blue piping along the neckline and the armholes; a deep maroon cloth sash wrapped twice around the waist; the shirt hem reaches the hips over the sash; loose deep-maroon trousers that are gathered at the ankles; simple black cloth slip-on shoes with thin off-white soles. Bare arms. No jewellery, no mala, no shawl, no hat.
|
||||
|
||||
Layout: FIVE full-body standing views of the SAME monk side by side, all the same height, feet on one shared baseline, arms hanging relaxed slightly away from the body, standing upright and still: (1) front view facing the viewer, (2) three-quarter front view turned toward the right side of the image, (3) exact right-facing side profile, (4) three-quarter back view turning away toward the right, (5) back view.
|
||||
Background: perfectly flat plain white, with no floor, no shadows, no gradient, no texture.
|
||||
Constraints: no text, no labels, no numbers, no grid lines, no frames, no extra characters, no props. Identical colours, proportions and costume details in all five views.
|
||||
|
After Width: | Height: | Size: 1.5 MiB |
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"id": "tibetan-woman",
|
||||
"name": "Tibetan Woman",
|
||||
"figure": "tibetanWoman",
|
||||
"note": "Points are fractions of each part image: [x from the left, y from the top]. Views are painted facing the image's right; the renderer mirrors them for the other side.",
|
||||
"head": {
|
||||
"neck": "the middle of the cut at the bottom of the neck; the front view's crown is the top of the skull under the braids",
|
||||
"views": {
|
||||
"front": { "file": "parts/head-front.png", "neck": [0.5, 0.97], "crown": [0.5, 0.06] },
|
||||
"threeQuarter": { "file": "parts/head-three-quarter.png", "neck": [0.42, 0.97] },
|
||||
"side": { "file": "parts/head-side.png", "neck": [0.45, 0.97] },
|
||||
"threeQuarterBack": { "file": "parts/head-three-quarter-back.png", "neck": [0.43, 0.97] },
|
||||
"back": { "file": "parts/head-back.png", "neck": [0.5, 0.97] }
|
||||
}
|
||||
},
|
||||
"torso": {
|
||||
"views": {
|
||||
"front": { "file": "parts/torso-front.png", "neck": [0.5, 0.08], "hip": [0.5, 0.93], "shoulders": [[0.08, 0.17], [0.92, 0.17]] },
|
||||
"threeQuarter": { "file": "parts/torso-three-quarter.png", "neck": [0.52, 0.07], "hip": [0.5, 0.93], "shoulders": [[0.12, 0.18], [0.9, 0.17]] },
|
||||
"side": { "file": "parts/torso-side.png", "neck": [0.42, 0.05], "hip": [0.5, 0.93], "shoulders": [[0.26, 0.2], [0.32, 0.17]] },
|
||||
"threeQuarterBack": { "file": "parts/torso-three-quarter-back.png", "neck": [0.5, 0.05], "hip": [0.5, 0.93], "shoulders": [[0.05, 0.17], [0.87, 0.18]] },
|
||||
"back": { "file": "parts/torso-back.png", "neck": [0.5, 0.05], "hip": [0.5, 0.93], "shoulders": [[0.06, 0.17], [0.94, 0.17]] }
|
||||
}
|
||||
},
|
||||
"arm": { "file": "parts/arm.png", "root": [0.5, 0.09], "end": [0.53, 0.975], "anterior": 1, "thickness": 0.6 },
|
||||
"leg": { "file": "parts/leg.png", "root": [0.5, 0.04], "end": [0.5, 0.94], "anterior": 1, "thickness": 0.62 },
|
||||
"hands": {
|
||||
"scale": "the palm's wrist-to-fingertip length is the rig's hand length; every hand drawing shares its scale",
|
||||
"palm": { "file": "parts/hand-palm.png", "wrist": [0.5, 0.97], "tip": [0.53, 0.01], "across": "thumb", "sign": 1 },
|
||||
"back": { "file": "parts/hand-back.png", "wrist": [0.5, 0.97], "tip": [0.52, 0.01], "across": "thumb", "sign": -1 },
|
||||
"edge": { "file": "parts/hand-edge.png", "wrist": [0.5, 0.98], "tip": [0.4, 0.01], "across": "palm", "sign": 1 },
|
||||
"fistFront": { "file": "parts/fist-front.png", "wrist": [0.5, 0.97], "tip": [0.5, 0.02], "across": "thumb", "sign": -1 },
|
||||
"fistSide": { "file": "parts/fist-side.png", "wrist": [0.45, 0.97], "tip": [0.5, 0.02], "across": "palm", "sign": 1 },
|
||||
"hook": { "file": "parts/hook.png", "wrist": [0.03, 0.29], "tip": [0.03, 0.95], "across": "palm", "sign": 1 }
|
||||
},
|
||||
"shoes": {
|
||||
"scale": "the outer profile's heel-to-toe length is the rig's foot length; every shoe drawing shares its scale",
|
||||
"outer": { "file": "parts/shoe-outer.png", "heel": [0.03, 0.955], "toe": [0.985, 0.955] },
|
||||
"inner": { "file": "parts/shoe-inner.png", "heel": [0.03, 0.955], "toe": [0.985, 0.955] },
|
||||
"front": { "file": "parts/shoe-front.png", "ankle": [0.5, 0.55] },
|
||||
"back": { "file": "parts/shoe-back.png", "ankle": [0.5, 0.56] },
|
||||
"threeQuarter": { "file": "parts/shoe-three-quarter.png", "ankle": [0.3, 0.52] },
|
||||
"threeQuarterBack": { "file": "parts/shoe-three-quarter-back.png", "ankle": [0.3, 0.5] }
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 128 KiB |
@@ -0,0 +1,266 @@
|
||||
{
|
||||
"head-front": {
|
||||
"size": [
|
||||
211,
|
||||
275
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
64,
|
||||
106
|
||||
]
|
||||
},
|
||||
"head-three-quarter": {
|
||||
"size": [
|
||||
217,
|
||||
277
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
357,
|
||||
103
|
||||
]
|
||||
},
|
||||
"head-side": {
|
||||
"size": [
|
||||
233,
|
||||
273
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
660,
|
||||
107
|
||||
]
|
||||
},
|
||||
"head-three-quarter-back": {
|
||||
"size": [
|
||||
220,
|
||||
275
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
950,
|
||||
106
|
||||
]
|
||||
},
|
||||
"head-back": {
|
||||
"size": [
|
||||
223,
|
||||
277
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
1253,
|
||||
104
|
||||
]
|
||||
},
|
||||
"torso-front": {
|
||||
"size": [
|
||||
306,
|
||||
483
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
18,
|
||||
447
|
||||
]
|
||||
},
|
||||
"torso-three-quarter": {
|
||||
"size": [
|
||||
301,
|
||||
482
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
342,
|
||||
447
|
||||
]
|
||||
},
|
||||
"torso-side": {
|
||||
"size": [
|
||||
234,
|
||||
478
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
666,
|
||||
449
|
||||
]
|
||||
},
|
||||
"torso-three-quarter-back": {
|
||||
"size": [
|
||||
280,
|
||||
476
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
917,
|
||||
452
|
||||
]
|
||||
},
|
||||
"torso-back": {
|
||||
"size": [
|
||||
296,
|
||||
481
|
||||
],
|
||||
"sheet": "source/atlas-body.png",
|
||||
"at": [
|
||||
1220,
|
||||
449
|
||||
]
|
||||
},
|
||||
"arm": {
|
||||
"size": [
|
||||
151,
|
||||
513
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
140,
|
||||
44
|
||||
]
|
||||
},
|
||||
"leg": {
|
||||
"size": [
|
||||
196,
|
||||
532
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
491,
|
||||
26
|
||||
]
|
||||
},
|
||||
"hand-palm": {
|
||||
"size": [
|
||||
186,
|
||||
414
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
854,
|
||||
112
|
||||
]
|
||||
},
|
||||
"hand-back": {
|
||||
"size": [
|
||||
187,
|
||||
418
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
1230,
|
||||
108
|
||||
]
|
||||
},
|
||||
"hand-edge": {
|
||||
"size": [
|
||||
101,
|
||||
389
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
153,
|
||||
583
|
||||
]
|
||||
},
|
||||
"fist-front": {
|
||||
"size": [
|
||||
200,
|
||||
265
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
464,
|
||||
699
|
||||
]
|
||||
},
|
||||
"fist-side": {
|
||||
"size": [
|
||||
183,
|
||||
295
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
846,
|
||||
671
|
||||
]
|
||||
},
|
||||
"hook": {
|
||||
"size": [
|
||||
244,
|
||||
280
|
||||
],
|
||||
"sheet": "source/atlas-limbs.png",
|
||||
"at": [
|
||||
1210,
|
||||
662
|
||||
]
|
||||
},
|
||||
"shoe-outer": {
|
||||
"size": [
|
||||
416,
|
||||
275
|
||||
],
|
||||
"sheet": "source/atlas-shoes.png",
|
||||
"at": [
|
||||
95,
|
||||
126
|
||||
]
|
||||
},
|
||||
"shoe-inner": {
|
||||
"size": [
|
||||
417,
|
||||
276
|
||||
],
|
||||
"sheet": "source/atlas-shoes.png",
|
||||
"at": [
|
||||
607,
|
||||
125
|
||||
]
|
||||
},
|
||||
"shoe-front": {
|
||||
"size": [
|
||||
205,
|
||||
300
|
||||
],
|
||||
"sheet": "source/atlas-shoes.png",
|
||||
"at": [
|
||||
1183,
|
||||
125
|
||||
]
|
||||
},
|
||||
"shoe-back": {
|
||||
"size": [
|
||||
201,
|
||||
308
|
||||
],
|
||||
"sheet": "source/atlas-shoes.png",
|
||||
"at": [
|
||||
163,
|
||||
574
|
||||
]
|
||||
},
|
||||
"shoe-three-quarter": {
|
||||
"size": [
|
||||
391,
|
||||
314
|
||||
],
|
||||
"sheet": "source/atlas-shoes.png",
|
||||
"at": [
|
||||
600,
|
||||
573
|
||||
]
|
||||
},
|
||||
"shoe-three-quarter-back": {
|
||||
"size": [
|
||||
328,
|
||||
298
|
||||
],
|
||||
"sheet": "source/atlas-shoes.png",
|
||||
"at": [
|
||||
1149,
|
||||
570
|
||||
]
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 118 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 183 KiB |
|
After Width: | Height: | Size: 201 KiB |
|
After Width: | Height: | Size: 145 KiB |
|
After Width: | Height: | Size: 172 KiB |
|
After Width: | Height: | Size: 195 KiB |
@@ -0,0 +1,155 @@
|
||||
{
|
||||
"sheets": [
|
||||
{
|
||||
"file": "source/atlas-body.png",
|
||||
"grid": [
|
||||
5,
|
||||
2
|
||||
],
|
||||
"columnEdges": [
|
||||
0,
|
||||
335,
|
||||
660,
|
||||
912,
|
||||
1212,
|
||||
1536
|
||||
],
|
||||
"rowEdges": [
|
||||
0,
|
||||
415,
|
||||
1024
|
||||
],
|
||||
"tiles": [
|
||||
"head-front",
|
||||
"head-three-quarter",
|
||||
"head-side",
|
||||
"head-three-quarter-back",
|
||||
"head-back",
|
||||
"torso-front",
|
||||
"torso-three-quarter",
|
||||
"torso-side",
|
||||
"torso-three-quarter-back",
|
||||
"torso-back"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "source/atlas-limbs.png",
|
||||
"grid": [
|
||||
4,
|
||||
2
|
||||
],
|
||||
"rowEdges": [
|
||||
0,
|
||||
570,
|
||||
1024
|
||||
],
|
||||
"tiles": [
|
||||
"arm",
|
||||
"leg",
|
||||
"hand-palm",
|
||||
"hand-back",
|
||||
"hand-edge",
|
||||
"fist-front",
|
||||
"fist-side",
|
||||
"hook"
|
||||
],
|
||||
"fade": {
|
||||
"arm": {
|
||||
"bottom": [
|
||||
0.95,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"hand-palm": {
|
||||
"bottom": [
|
||||
0.92,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"hand-back": {
|
||||
"bottom": [
|
||||
0.92,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"hand-edge": {
|
||||
"bottom": [
|
||||
0.92,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"fist-front": {
|
||||
"bottom": [
|
||||
0.92,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"fist-side": {
|
||||
"bottom": [
|
||||
0.92,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"hook": {
|
||||
"left": [
|
||||
0.0,
|
||||
0.08
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"file": "source/atlas-shoes.png",
|
||||
"grid": [
|
||||
3,
|
||||
2
|
||||
],
|
||||
"tiles": [
|
||||
"shoe-outer",
|
||||
"shoe-inner",
|
||||
"shoe-front",
|
||||
"shoe-back",
|
||||
"shoe-three-quarter",
|
||||
"shoe-three-quarter-back"
|
||||
],
|
||||
"fade": {
|
||||
"shoe-outer": {
|
||||
"top": [
|
||||
0.22,
|
||||
0.32
|
||||
]
|
||||
},
|
||||
"shoe-inner": {
|
||||
"top": [
|
||||
0.22,
|
||||
0.32
|
||||
]
|
||||
},
|
||||
"shoe-front": {
|
||||
"top": [
|
||||
0.3,
|
||||
0.42
|
||||
]
|
||||
},
|
||||
"shoe-back": {
|
||||
"top": [
|
||||
0.3,
|
||||
0.42
|
||||
]
|
||||
},
|
||||
"shoe-three-quarter": {
|
||||
"top": [
|
||||
0.2,
|
||||
0.3
|
||||
]
|
||||
},
|
||||
"shoe-three-quarter-back": {
|
||||
"top": [
|
||||
0.2,
|
||||
0.3
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
Use your built-in image generation tool to create exactly ONE image (landscape 1536x1024). Do not write code or files yourself; just generate the image.
|
||||
|
||||
Asset: a cut-out parts sheet with TEN pieces in FIVE equal columns and TWO rows. The five columns are the five turnaround views of reference image 1, in the same order: (1) front view, (2) three-quarter front view turned toward the image's right, (3) exact right-facing side profile, (4) three-quarter back view turning away toward the right, (5) back view.
|
||||
Row 1, one per column: the woman's HEAD, with her braids wound around it, and the COMPLETE BARE NECK in that view. The neck continues straight down below the jaw and ends in a plain horizontal cut at the base of the neck. Head and neck only: no shoulders, no collar, no clothing.
|
||||
Row 2, one per column: her TORSO garment panel in that same view, from the shoulders down to the hem at the hips: the cream blouse's small standing collar and shoulders with the teal wrap vest over it and the rainbow sash at the waist. NO head, NO neck, NO arms and NO sleeves: each shoulder ends in a smooth rounded cream shoulder where a separate sleeve will be attached. The collar opening is empty where the neck goes. The torso panels are drawn upright and at the same scale as each other, all hems on one line.
|
||||
All ten pieces share one scale: each head is about one seventh of the full body height, as in reference image 1.
|
||||
Keep the pieces well inside their tiles: leave a clear white gap between the bottom of each neck in row 1 and the top of each torso in row 2.
|
||||
|
After Width: | Height: | Size: 1.7 MiB |
@@ -0,0 +1,6 @@
|
||||
Use your built-in image generation tool to create exactly ONE image (landscape 1536x1024). Do not write code or files yourself; just generate the image.
|
||||
|
||||
Asset: a cut-out parts sheet with EIGHT pieces in FOUR equal columns and TWO rows, all at the scale of reference image 1.
|
||||
Row 1: (1) one straight ARM in the cream-white silk SLEEVE hanging perfectly vertically, from the rounded shoulder cap at the top down to the gathered cuff at the wrist, seen from the outer side, with only a short bit of bare wrist below the cuff, cut cleanly at the wrist, NO hand; (2) one straight loose dark indigo TROUSER LEG hanging perfectly vertically, from a horizontal cut at the upper hip at the top down to the gathered elastic ankle cuff at the bottom, NO foot and no shoe, seen from the side; (3) an open relaxed RIGHT HAND, PALM facing the viewer, fingers together pointing straight UP, thumb relaxed at the side, the wrist cut cleanly at the bottom; (4) an open relaxed RIGHT HAND, BACK of the hand facing the viewer, fingers together pointing straight UP, wrist cut at the bottom.
|
||||
Row 2: (5) an open flat hand seen exactly EDGE-ON from the THUMB side, fingers together pointing straight UP, wrist cut at the bottom; (6) a loose FIST seen from the front, the curled fingers toward the viewer, wrist cut at the bottom; (7) a loose FIST seen from the THUMB side, the thumb resting over the curled fingers, wrist cut at the bottom; (8) a Tai Chi HOOK HAND seen from the side: the wrist at the bottom, the back of the hand rising from the wrist and bending over so all five fingertips gather together into a single point that hangs downward, like a crane's beak.
|
||||
All hands are slender, the same size and skin colour as each other.
|
||||
|
After Width: | Height: | Size: 1.3 MiB |
@@ -0,0 +1,5 @@
|
||||
Use your built-in image generation tool to create exactly ONE image (landscape 1536x1024). Do not write code or files yourself; just generate the image.
|
||||
|
||||
Asset: a cut-out parts sheet with SIX pieces in THREE equal columns and TWO rows: the woman's dark red cloth slip-on SHOE worn on her bare foot, each with a short piece of the bare ankle rising above the shoe opening and cut off horizontally just above the ankle bone, all at the same scale. Matte dark red cotton uppers, thin light-beige soles.
|
||||
Row 1: (1) the right foot in exact SIDE PROFILE pointing to the image's RIGHT, seen from the outer side, the sole flat and horizontal; (2) the left foot in exact SIDE PROFILE pointing to the image's RIGHT, seen from the inner (arch) side, the sole flat and horizontal; (3) the foot seen exactly from the FRONT, toe pointing at the viewer.
|
||||
Row 2: (4) the foot seen exactly from BEHIND, heel toward the viewer; (5) the foot in THREE-QUARTER FRONT view, toe pointing toward the viewer and to the image's right; (6) the foot in THREE-QUARTER BACK view, heel toward the viewer and toe pointing away to the image's right.
|
||||
|
After Width: | Height: | Size: 1.3 MiB |
@@ -0,0 +1,3 @@
|
||||
Reference image 1 is the approved turnaround of this exact Tibetan woman: copy her face, braids wound around her head with red yarn and turquoise and coral beads, warm medium-brown skin, cream-white long-sleeved silk blouse with a small standing collar, sleeveless deep teal-blue wrap vest, pangden rainbow-striped waist sash, loose dark indigo trousers gathered at the ankles, dark red cloth shoes, colours, line quality and painting style exactly. Reference image 2 is the app's style reference (warm hand-painted storybook look, matte gouache/watercolor textures, subtle paper grain, restrained warm brown contour lines).
|
||||
These are separate cut-out pieces for a 2D puppet animation: every piece is isolated, complete, centred in its own equal tile with generous white margins, never touching or overlapping another piece, with its own closed contour line.
|
||||
Background: perfectly flat plain pure white (#FFFFFF), no floor, no shadows, no gradients, no grid lines, no tile borders, no text, no labels, no numbers. No extra pieces.
|
||||
@@ -0,0 +1,11 @@
|
||||
Use your built-in image generation tool to create exactly ONE image (landscape 1536x1024). Do not write any code or files yourself; just generate the image.
|
||||
|
||||
Use case: character turnaround sheet for a 2D cut-out animation of the Yang Tai Chi 24-form in the Inner Breeze meditation app.
|
||||
Reference image 1 is the approved turnaround of a Tibetan monk character from the same animation: match its illustration style, line quality, proportions, sheet layout and lighting exactly. Reference image 2 shows the app's other approved characters (warm hand-painted storybook look, matte gouache/watercolor textures, subtle paper grain, restrained warm brown contour lines, natural adult proportions, calm faces with small relaxed eyes).
|
||||
|
||||
Character: a Tibetan woman, about 35 years old, slim and calm, warm medium-brown skin with rosy cheeks, gentle peaceful face with small relaxed dark eyes and a faint kind smile. Her long black hair is braided into two braids that are wound neatly around the crown of her head like a circlet, tied with red yarn and a few small turquoise and coral beads; no hair hangs down.
|
||||
Clothing (Tai Chi practice outfit with traditional Tibetan touches): a cream-white long-sleeved silk blouse (wonju) with a small standing collar and plain cuffs at the wrists; over it a sleeveless deep teal-blue wrap vest that crosses over the chest to the right side and reaches the hips; a waist sash woven in the traditional Tibetan pangden rainbow stripes (narrow horizontal bands of red, orange, yellow, green and blue) wrapped around the waist; loose dark indigo trousers gathered at the ankles; simple dark red cloth slip-on shoes with thin off-white soles. No jewellery except the beads in the hair, no apron, no hat.
|
||||
|
||||
Layout: FIVE full-body standing views of the SAME woman side by side, all the same height, feet on one shared baseline, arms hanging relaxed slightly away from the body, standing upright and still: (1) front view facing the viewer, (2) three-quarter front view turned toward the right side of the image, (3) exact right-facing side profile, (4) three-quarter back view turning away toward the right, (5) back view.
|
||||
Background: perfectly flat plain white, with no floor, no shadows, no gradient, no texture.
|
||||
Constraints: no text, no labels, no numbers, no grid lines, no frames, no extra characters, no props. Identical colours, proportions and costume details in all five views.
|
||||
|
After Width: | Height: | Size: 1.6 MiB |
@@ -0,0 +1,64 @@
|
||||
// Poses where one lesson hands over to the next. A lesson that ends here
|
||||
// should finish in this pose (positions may differ; stance, facing, weight
|
||||
// and hands should match), and the next lesson's standalone preview starts
|
||||
// from it.
|
||||
|
||||
import { Form } from '../src/form.js'
|
||||
import { standingPose } from '../src/pose.js'
|
||||
import { SINK, STEP, TRACK, pressByHip } from './hands.js'
|
||||
|
||||
// Built with the same choreography calls as the form, from standing.
|
||||
function build(edit) {
|
||||
const form = new Form(standingPose())
|
||||
form.key(1, edit)
|
||||
return form.pose
|
||||
}
|
||||
|
||||
// End of Single Whip (lessons 4 → 5): left bow stance facing 90, left palm
|
||||
// pushing forward, right hand a hook out to the right.
|
||||
export function singleWhipPose() {
|
||||
return build((k) => {
|
||||
k.turn(90)
|
||||
k.toes('R', 45, 'ball')
|
||||
k.place('L', { from: 'R', fwd: STEP, out: TRACK })
|
||||
k.load('L', 0.7)
|
||||
k.sink(SINK)
|
||||
k.hips(-10)
|
||||
k.chest(-15)
|
||||
k.hand('L', { at: [0.1, -0.03, 0.48], palm: 'fwd+out', fingers: 'up', shape: 'palm', elbow: [0.4, -1, 0] })
|
||||
k.hand('R', { at: [0.66, -0.02, 0.2], palm: 'back+mid', fingers: 'down', shape: 'hook', elbow: [0.3, -1, 0] })
|
||||
k.look('L')
|
||||
})
|
||||
}
|
||||
|
||||
// End of Golden Rooster on the right leg (lessons 6 → 7): facing 270,
|
||||
// standing on the right leg, left knee lifted, left hand up over the knee,
|
||||
// right hand pressing by the right hip.
|
||||
export function goldenRoosterRightPose() {
|
||||
return build((k) => {
|
||||
k.turn(270)
|
||||
k.toes('R', 0, 'ball')
|
||||
k.load('R')
|
||||
k.sink(0.06)
|
||||
k.place('L', { from: 'R', fwd: 0.16, out: 0.1, pitch: -25, lift: 0.36 })
|
||||
k.hand('L', { at: [0.12, 0.08, 0.32], palm: 'mid', fingers: 'up', shape: 'palm', elbow: [0.1, -1, 0.3] })
|
||||
pressByHip(k, 'R')
|
||||
k.look('fwd')
|
||||
})
|
||||
}
|
||||
|
||||
// End of Fan Through the Back (lessons 7 → 8): left bow stance facing 270,
|
||||
// right hand held above the right temple palm out, left palm pushing.
|
||||
export function fanThroughBackPose() {
|
||||
return build((k) => {
|
||||
k.turn(270)
|
||||
k.toes('R', 45, 'ball')
|
||||
k.place('L', { from: 'R', fwd: STEP, out: TRACK })
|
||||
k.load('L', 0.7)
|
||||
k.sink(SINK)
|
||||
k.waist(-10)
|
||||
k.hand('R', { at: [0.2, 0.18, 0.18], palm: 'out+up', fingers: 'mid+fwd', shape: 'palm', elbow: [0.8, -1, 0] })
|
||||
k.hand('L', { at: [0.06, -0.02, 0.5], palm: 'fwd', fingers: 'up', shape: 'palm', elbow: [0.4, -1, 0] })
|
||||
k.look('fwd')
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,792 @@
|
||||
// Foundations: posture, warm-ups, standing, stances, stepping and hand shapes.
|
||||
//
|
||||
// Every drill starts standing with the feet together and ends standing, so
|
||||
// it can loop. Drills done on both sides are written for the left and run
|
||||
// again with the form mirrored.
|
||||
|
||||
import { SINK, STEP, TRACK, handsDown, pressByHip, pushPalm } from './hands.js'
|
||||
|
||||
// Shoulder width between the feet, measured centre to centre.
|
||||
const SHOULDER_WIDTH = 0.3
|
||||
|
||||
// Hands resting on the hips, fingers forward.
|
||||
function handsOnHips(k) {
|
||||
k.hands({ at: [0.19, -0.5, 0.02], palm: 'mid', fingers: 'fwd+down', shape: 'palm', elbow: [1, -0.4, -0.5] })
|
||||
}
|
||||
|
||||
// Arms relaxed at the sides, a little away from the body.
|
||||
function armsHanging(k) {
|
||||
k.hands({ at: [0.21, -0.57, 0.05], palm: 'mid', fingers: 'down', shape: 'palm', elbow: [0.35, -1, -0.25] })
|
||||
}
|
||||
|
||||
// Both palms side by side in front of the belly.
|
||||
function palmsAtBelly(k, palm = 'up', { up = -0.42, fwd = 0.2 } = {}) {
|
||||
k.hands({ at: [0.12, up, fwd], palm, fingers: 'mid+fwd', shape: 'palm', elbow: [0.6, -1, -0.3] })
|
||||
}
|
||||
|
||||
// Bends the knees a little before the weight moves: straight legs cannot
|
||||
// shift the weight smoothly.
|
||||
function softenKnees(f, depth = 0.04) {
|
||||
f.key(1.2, (k) => {
|
||||
k.sink(depth)
|
||||
}, 'Soften the knees')
|
||||
}
|
||||
|
||||
// Steps the left foot out to `width` from feet together, toes first.
|
||||
function stepOut(f, width = SHOULDER_WIDTH, cue = 'Step out to shoulder width, toes first') {
|
||||
softenKnees(f, 0.03)
|
||||
f.key(1.3, (k) => {
|
||||
k.load('R')
|
||||
}, 'Settle the weight onto the right foot')
|
||||
f.key(0.9, (k) => {
|
||||
k.lift('L', 0.03, -12)
|
||||
}, 'Lift the left heel, then the foot')
|
||||
f.key(1.1, (k) => {
|
||||
k.place('L', { from: 'other', out: width, pitch: -10 })
|
||||
}, cue)
|
||||
f.key(1.3, (k) => {
|
||||
k.ground('L')
|
||||
k.load(0.5)
|
||||
}, 'Lower the heel and centre the weight')
|
||||
}
|
||||
|
||||
// Brings the left foot back beside the right and stands up.
|
||||
function stepIn(f, cue = 'Bring the left foot back beside the right') {
|
||||
f.key(1.3, (k) => {
|
||||
k.load('R')
|
||||
armsHanging(k)
|
||||
k.look('fwd')
|
||||
}, 'Shift the weight onto the right foot')
|
||||
f.key(1.2, (k) => {
|
||||
k.place('L', { from: 'other', out: 0.1, pitch: -10 })
|
||||
}, cue)
|
||||
f.key(1.3, (k) => {
|
||||
k.ground('L')
|
||||
k.load(0.5)
|
||||
k.sink(0)
|
||||
k.waist(0)
|
||||
handsDown(k)
|
||||
}, 'Centre the weight and stand tall')
|
||||
}
|
||||
|
||||
// ── 1. Posture and breathing ───────────────────────────────────────────
|
||||
|
||||
function standingPosture(f) {
|
||||
f.hold(2.0, 'Stand with the feet together, arms relaxed, eyes level')
|
||||
stepOut(f)
|
||||
f.key(3.0, (k) => {
|
||||
k.sink(0.04)
|
||||
armsHanging(k)
|
||||
}, 'Soften the knees; let the shoulders drop and the arms hang')
|
||||
f.hold(3.5, 'Lift the crown of the head, tuck the chin in slightly')
|
||||
f.key(3.0, (k) => {
|
||||
k.sink(0.05)
|
||||
}, 'Relax the lower back; feel the weight sink into the feet')
|
||||
f.hold(3.5, 'Breathe naturally through the nose')
|
||||
stepIn(f)
|
||||
}
|
||||
|
||||
function breathing(f) {
|
||||
stepOut(f)
|
||||
f.key(2.5, (k) => {
|
||||
k.sink(0.05)
|
||||
palmsAtBelly(k, 'up')
|
||||
}, 'Bring the hands in front of the belly, palms up')
|
||||
for (let round = 0; round < 3; round += 1) {
|
||||
f.key(4.0, (k) => {
|
||||
k.sink(0.03)
|
||||
palmsAtBelly(k, 'up', { up: -0.2, fwd: 0.26 })
|
||||
}, 'Breathe in: the palms float up to the chest')
|
||||
f.key(1.2, (k) => {
|
||||
palmsAtBelly(k, 'down', { up: -0.18, fwd: 0.27 })
|
||||
}, 'Turn the palms down')
|
||||
f.key(4.0, (k) => {
|
||||
k.sink(0.07)
|
||||
palmsAtBelly(k, 'down', { up: -0.44, fwd: 0.21 })
|
||||
}, 'Breathe out: the palms sink, the knees soften')
|
||||
f.key(1.2, (k) => {
|
||||
palmsAtBelly(k, 'up', { up: -0.42, fwd: 0.2 })
|
||||
}, 'Turn the palms up')
|
||||
}
|
||||
stepIn(f, 'Lower the arms and bring the left foot back')
|
||||
}
|
||||
|
||||
// ── 2. Warm-up ─────────────────────────────────────────────────────────
|
||||
|
||||
function neck(f) {
|
||||
stepOut(f)
|
||||
f.key(3.0, (k) => {
|
||||
k.look({ yaw: 60 })
|
||||
}, 'Turn the head slowly to the left')
|
||||
f.key(2.5, (k) => {
|
||||
k.look('fwd')
|
||||
}, 'Back to the centre')
|
||||
f.key(3.0, (k) => {
|
||||
k.look({ yaw: -60 })
|
||||
}, 'Turn the head slowly to the right')
|
||||
f.key(2.5, (k) => {
|
||||
k.look('fwd')
|
||||
}, 'Back to the centre')
|
||||
f.key(3.0, (k) => {
|
||||
k.look({ pitch: 35 })
|
||||
}, 'Nod the chin gently toward the chest')
|
||||
f.key(3.0, (k) => {
|
||||
k.look({ pitch: -20 })
|
||||
}, 'Lift the gaze gently, without dropping the head back')
|
||||
f.key(2.5, (k) => {
|
||||
k.look('fwd')
|
||||
}, 'Eyes level again')
|
||||
stepIn(f)
|
||||
}
|
||||
|
||||
function armCircles(f) {
|
||||
stepOut(f)
|
||||
const front = { at: [0.18, -0.04, 0.5], palm: 'down', fingers: 'fwd', elbow: [0.3, -1, -0.3] }
|
||||
const overhead = { at: [0.15, 0.54, 0.08], palm: 'mid', fingers: 'up', elbow: [0.6, -0.2, -0.4] }
|
||||
const side = { at: [0.7, 0.0, 0.05], palm: 'down', fingers: 'out', elbow: [0, -1, -0.4] }
|
||||
const low = { at: [0.2, -0.56, 0.08], palm: 'mid', fingers: 'down', elbow: [0.35, -1, -0.25] }
|
||||
for (let round = 0; round < 2; round += 1) {
|
||||
f.key(2.2, (k) => k.hands(front), round === 0 ? 'Shoulder circles: raise both arms forward' : null)
|
||||
f.key(2.0, (k) => k.hands(overhead), round === 0 ? 'Continue up overhead' : null)
|
||||
f.key(2.2, (k) => k.hands(side), round === 0 ? 'Open the arms out to the sides' : null)
|
||||
f.key(2.0, (k) => k.hands(low), round === 0 ? 'Lower them and let the shoulders roll down' : null)
|
||||
}
|
||||
for (let round = 0; round < 2; round += 1) {
|
||||
f.key(2.2, (k) => k.hands(side), round === 0 ? 'Now the other way: raise the arms out to the sides' : null)
|
||||
f.key(2.0, (k) => k.hands(overhead), round === 0 ? 'Up overhead' : null)
|
||||
f.key(2.2, (k) => k.hands(front), round === 0 ? 'Down in front' : null)
|
||||
f.key(2.0, (k) => k.hands(low), round === 0 ? 'Relax the arms down' : null)
|
||||
}
|
||||
stepIn(f)
|
||||
}
|
||||
|
||||
// One loose waist turn toward `side`: the arms swing round with the body.
|
||||
function swing(k, side) {
|
||||
const sign = side === 'L' ? 1 : -1
|
||||
const other = side === 'L' ? 'R' : 'L'
|
||||
k.chest(55 * sign)
|
||||
k.hips(25 * sign)
|
||||
k.load(side, 0.6)
|
||||
k.hand(other, { at: [-0.1, -0.16, 0.3], palm: 'back', fingers: 'mid', shape: 'palm', elbow: [0.6, -1, 0] })
|
||||
k.hand(side, { at: [0.22, -0.5, -0.12], palm: 'mid+fwd', fingers: 'down+back', shape: 'palm', elbow: [0.5, -1, -0.5] })
|
||||
k.look({ yaw: 25 * sign })
|
||||
}
|
||||
|
||||
// Passing through the centre between two swings, arms hanging wide.
|
||||
function swingThrough(k) {
|
||||
k.waist(0)
|
||||
k.load(0.5)
|
||||
k.hands({ at: [0.25, -0.52, 0.06], palm: 'mid', fingers: 'down', shape: 'palm', elbow: [0.35, -1, -0.25] })
|
||||
k.look('fwd')
|
||||
}
|
||||
|
||||
function waistTurns(f) {
|
||||
stepOut(f, 0.4, 'Step out a little wider than the shoulders')
|
||||
f.key(2.0, (k) => {
|
||||
k.sink(0.06)
|
||||
}, 'Soften the knees; keep the knees still as the waist turns')
|
||||
for (let round = 0; round < 3; round += 1) {
|
||||
f.key(2.0, (k) => swing(k, 'L'), round === 0 ? 'Turn the waist left; the arms swing loosely with it' : null)
|
||||
f.key(1.3, swingThrough, round === 0 ? 'Through the centre, arms hanging' : null)
|
||||
f.key(2.0, (k) => swing(k, 'R'), round === 0 ? 'Turn the waist right; the arms follow' : null)
|
||||
f.key(1.3, swingThrough)
|
||||
}
|
||||
f.key(2.4, (k) => {
|
||||
k.waist(0)
|
||||
k.load(0.5)
|
||||
armsHanging(k)
|
||||
k.look('fwd')
|
||||
}, 'Come back to the centre')
|
||||
f.key(1.3, (k) => {
|
||||
k.load('R')
|
||||
k.sink(0.03)
|
||||
}, 'Shift the weight onto the right foot')
|
||||
f.key(1.3, (k) => {
|
||||
k.place('L', { from: 'other', out: 0.1, pitch: -10 })
|
||||
}, 'Bring the left foot back beside the right')
|
||||
f.key(1.3, (k) => {
|
||||
k.ground('L')
|
||||
k.load(0.5)
|
||||
k.sink(0)
|
||||
handsDown(k)
|
||||
}, 'Centre the weight and stand tall')
|
||||
}
|
||||
|
||||
function kneeCircles(f) {
|
||||
softenKnees(f, 0.03)
|
||||
f.key(1.3, (k) => {
|
||||
k.load('R')
|
||||
}, 'Settle onto the right foot')
|
||||
f.key(1.2, (k) => {
|
||||
k.place('L', { from: 'other', out: 0.2, pitch: -10 })
|
||||
}, 'Step out to hip width')
|
||||
f.key(1.5, (k) => {
|
||||
k.ground('L')
|
||||
k.load(0.5)
|
||||
k.sink(0.07)
|
||||
handsOnHips(k)
|
||||
}, 'Hands on the hips, knees soft')
|
||||
const ring = [[0.045, 0], [0, 0.045], [-0.03, 0], [0, -0.045]]
|
||||
for (let round = 0; round < 3; round += 1) {
|
||||
ring.forEach(([fwd, side], index) => {
|
||||
f.key(1.1, (k) => {
|
||||
k.shift(fwd, side)
|
||||
k.sink(0.07 + (fwd > 0 ? 0.02 : 0))
|
||||
}, round === 0 && index === 0 ? 'Circle the knees: forward, left, back, right' : null)
|
||||
})
|
||||
}
|
||||
for (let round = 0; round < 3; round += 1) {
|
||||
[...ring].reverse().forEach(([fwd, side], index) => {
|
||||
f.key(1.1, (k) => {
|
||||
k.shift(fwd, side)
|
||||
k.sink(0.07 + (fwd > 0 ? 0.02 : 0))
|
||||
}, round === 0 && index === 0 ? 'And the other way round' : null)
|
||||
})
|
||||
}
|
||||
f.key(1.5, (k) => {
|
||||
k.shift(0, 0)
|
||||
k.sink(0.02)
|
||||
k.load('R')
|
||||
armsHanging(k)
|
||||
}, 'Settle and shift onto the right foot')
|
||||
f.key(1.2, (k) => {
|
||||
k.place('L', { from: 'other', out: 0.1, pitch: -10 })
|
||||
}, 'Bring the left foot back')
|
||||
f.key(1.3, (k) => {
|
||||
k.ground('L')
|
||||
k.load(0.5)
|
||||
k.sink(0)
|
||||
handsDown(k)
|
||||
}, 'Stand tall')
|
||||
}
|
||||
|
||||
// ── 3. Standing meditation ─────────────────────────────────────────────
|
||||
|
||||
function hugTheTree(f) {
|
||||
const arms = (k, fwd, up = -0.15) => {
|
||||
k.hands({ at: [0.15, up, fwd], palm: 'back+mid', fingers: 'mid', shape: 'palm', elbow: [0.9, -0.55, -0.1] })
|
||||
}
|
||||
stepOut(f)
|
||||
f.key(2.5, (k) => {
|
||||
k.sink(0.1)
|
||||
palmsAtBelly(k, 'back', { up: -0.4, fwd: 0.22 })
|
||||
}, 'Sink a little; bring the hands in front of the belly')
|
||||
f.key(3.0, (k) => {
|
||||
arms(k, 0.38)
|
||||
}, 'Raise the arms into a circle at chest height, as if hugging a tree')
|
||||
f.hold(2.0, 'Elbows soft and a little lower than the wrists; shoulders down')
|
||||
for (let round = 0; round < 4; round += 1) {
|
||||
f.key(4.0, (k) => {
|
||||
k.sink(0.09)
|
||||
arms(k, 0.41, -0.14)
|
||||
}, round === 0 ? 'Breathe in: the circle of the arms swells slightly' : null)
|
||||
f.key(4.0, (k) => {
|
||||
k.sink(0.11)
|
||||
arms(k, 0.37, -0.16)
|
||||
}, round === 0 ? 'Breathe out: sink into the legs, let the arms settle' : null)
|
||||
}
|
||||
f.key(3.0, (k) => {
|
||||
palmsAtBelly(k, 'down', { up: -0.42, fwd: 0.2 })
|
||||
k.sink(0.06)
|
||||
}, 'Lower the hands slowly to the belly')
|
||||
stepIn(f)
|
||||
}
|
||||
|
||||
// ── 4. Stances ─────────────────────────────────────────────────────────
|
||||
|
||||
function horseStance(f) {
|
||||
softenKnees(f, 0.06)
|
||||
f.key(1.4, (k) => {
|
||||
k.load('R')
|
||||
k.sink(0.12)
|
||||
handsOnHips(k)
|
||||
}, 'Shift onto the right leg and sink a little')
|
||||
f.key(0.9, (k) => {
|
||||
k.lift('L', 0.04, -12)
|
||||
}, 'Lift the left foot')
|
||||
f.key(1.6, (k) => {
|
||||
k.place('L', { from: 'other', out: 0.46, turn: 8, pitch: -10 })
|
||||
}, 'Step wide to the side, toes first')
|
||||
f.key(2.2, (k) => {
|
||||
k.ground('L')
|
||||
k.load(0.5)
|
||||
k.sink(0.19)
|
||||
k.hands({ at: [0.12, -0.18, 0.36], palm: 'back+mid', fingers: 'mid', shape: 'palm', elbow: [0.9, -0.6, -0.1] })
|
||||
}, 'Horse stance: weight even, knees over the toes, back upright')
|
||||
f.hold(4.0, 'Hold: knees press gently outward, tailbone drops')
|
||||
f.key(2.2, (k) => {
|
||||
k.load('R')
|
||||
k.sink(0.13)
|
||||
handsOnHips(k)
|
||||
}, 'Shift onto the right leg')
|
||||
f.key(1.6, (k) => {
|
||||
k.place('L', { from: 'other', out: 0.1, pitch: -10 })
|
||||
}, 'Bring the left foot back')
|
||||
f.key(1.5, (k) => {
|
||||
k.ground('L')
|
||||
k.load(0.5)
|
||||
k.sink(0)
|
||||
handsDown(k)
|
||||
}, 'Stand tall')
|
||||
}
|
||||
|
||||
// A bow stance with the left foot in front, from feet together and back.
|
||||
function bowLeft(f) {
|
||||
softenKnees(f)
|
||||
f.key(1.3, (k) => {
|
||||
k.load('L')
|
||||
handsOnHips(k)
|
||||
}, 'Shift onto the left foot')
|
||||
f.key(1.0, (k) => {
|
||||
k.toes('R', 45)
|
||||
}, 'Turn the right toes out on the heel')
|
||||
f.key(1.4, (k) => {
|
||||
k.load('R')
|
||||
k.sink(SINK)
|
||||
}, 'Sit onto the right leg')
|
||||
f.key(1.5, (k) => {
|
||||
k.place('L', { from: 'other', fwd: STEP, out: TRACK, pitch: 18 })
|
||||
}, 'Step the left heel forward, a little to the side')
|
||||
f.key(2.2, (k) => {
|
||||
k.ground('L')
|
||||
k.load('L', 0.7)
|
||||
pushPalm(k, 'L', { out: 0.16, up: -0.08, fwd: 0.46 })
|
||||
pushPalm(k, 'R', { out: 0.16, up: -0.08, fwd: 0.46 })
|
||||
}, 'Bow stance: 70% forward, front knee over the foot, back leg long')
|
||||
f.hold(2.5, 'Hips and chest face forward; the back heel stays down')
|
||||
f.key(2.2, (k) => {
|
||||
k.load('R', 0.7)
|
||||
k.hands({ at: [0.15, -0.3, 0.22], palm: 'fwd+down', fingers: 'up+fwd', shape: 'palm', elbow: [0.5, -1, -0.4] })
|
||||
}, 'Sit back: 70% on the back leg')
|
||||
f.key(2.2, (k) => {
|
||||
k.load('L', 0.7)
|
||||
pushPalm(k, 'L', { out: 0.16, up: -0.08, fwd: 0.46 })
|
||||
pushPalm(k, 'R', { out: 0.16, up: -0.08, fwd: 0.46 })
|
||||
}, 'And shift forward again')
|
||||
f.key(2.0, (k) => {
|
||||
k.load('R')
|
||||
k.pitch('L', 15)
|
||||
handsOnHips(k)
|
||||
}, 'Sit all the way back; the front toes lift')
|
||||
f.key(2.0, (k) => {
|
||||
k.place('L', { from: 'other', out: 0.15, pitch: -10 })
|
||||
}, 'Draw the left foot back beside the right')
|
||||
f.key(1.3, (k) => {
|
||||
k.ground('L')
|
||||
k.load('L')
|
||||
}, 'Shift onto the left foot')
|
||||
f.key(1.0, (k) => {
|
||||
k.toes('R', 0)
|
||||
}, 'Turn the right toes back in')
|
||||
f.key(1.4, (k) => {
|
||||
k.load(0.5)
|
||||
k.sink(0)
|
||||
handsDown(k)
|
||||
}, 'Centre and stand tall')
|
||||
}
|
||||
|
||||
// An empty stance with the left foot in front: toes first, then heel.
|
||||
function emptyLeft(f) {
|
||||
softenKnees(f)
|
||||
f.key(1.3, (k) => {
|
||||
k.load('L')
|
||||
}, 'Shift onto the left foot')
|
||||
f.key(1.0, (k) => {
|
||||
k.toes('R', 45)
|
||||
}, 'Turn the right toes out on the heel')
|
||||
f.key(1.5, (k) => {
|
||||
k.load('R')
|
||||
k.sink(0.12)
|
||||
}, 'Sit onto the right leg')
|
||||
f.key(1.6, (k) => {
|
||||
k.place('L', { from: 'other', fwd: 0.3, out: 0.12, pitch: -16 })
|
||||
k.hand('L', { at: [0.06, -0.04, 0.42], palm: 'mid', fingers: 'up+fwd', shape: 'palm', elbow: [0.4, -1, 0] })
|
||||
k.hand('R', { at: [-0.02, -0.24, 0.24], palm: 'mid', fingers: 'up+fwd', shape: 'palm', elbow: [0.4, -1, -0.2] })
|
||||
k.look('L')
|
||||
}, 'Empty stance: the left toes touch lightly, all the weight stays back')
|
||||
f.hold(3.0, 'The front foot carries no weight; it could lift at any moment')
|
||||
f.key(1.4, (k) => {
|
||||
k.lift('L', 0.03, -8)
|
||||
}, 'Lift the front foot')
|
||||
f.key(1.4, (k) => {
|
||||
k.place('L', { from: 'self', pitch: 18 })
|
||||
}, 'Set it down on the heel, toes raised')
|
||||
f.hold(3.0, 'Heel empty stance, as in Play the Lute')
|
||||
f.key(1.6, (k) => {
|
||||
k.place('L', { from: 'other', out: 0.15, pitch: -10 })
|
||||
k.look('fwd')
|
||||
armsHanging(k)
|
||||
}, 'Draw the left foot back')
|
||||
f.key(1.3, (k) => {
|
||||
k.ground('L')
|
||||
k.load('L')
|
||||
}, 'Shift onto the left foot')
|
||||
f.key(1.0, (k) => {
|
||||
k.toes('R', 0)
|
||||
}, 'Turn the right toes back in')
|
||||
f.key(1.4, (k) => {
|
||||
k.load(0.5)
|
||||
k.sink(0)
|
||||
handsDown(k)
|
||||
}, 'Centre and stand tall')
|
||||
}
|
||||
|
||||
// Standing on the right leg with the left knee raised.
|
||||
function singleLegLeft(f) {
|
||||
softenKnees(f, 0.05)
|
||||
f.key(1.5, (k) => {
|
||||
k.load('R')
|
||||
k.sink(0.06)
|
||||
}, 'Shift all the weight onto the right foot')
|
||||
f.key(1.3, (k) => {
|
||||
k.place('L', { from: 'other', fwd: 0.08, out: 0.1, pitch: -20, lift: 0.16 })
|
||||
k.hand('L', { at: [0.15, -0.34, 0.3], palm: 'mid', fingers: 'fwd', shape: 'palm', elbow: [0.3, -1, 0] })
|
||||
pressByHip(k, 'R')
|
||||
}, 'Raise the left knee; the left hand comes forward')
|
||||
f.key(1.5, (k) => {
|
||||
k.place('L', { from: 'other', fwd: 0.2, out: 0.1, pitch: -25, lift: 0.42 })
|
||||
k.hand('L', { at: [0.12, 0.08, 0.32], palm: 'mid', fingers: 'up', shape: 'palm', elbow: [0.1, -1, 0.3] })
|
||||
}, 'Knee at hip height; the left hand rises above it, fingers up')
|
||||
f.hold(3.5, 'Standing leg soft, toes of the raised foot relaxed down')
|
||||
f.key(1.4, (k) => {
|
||||
k.place('L', { from: 'other', fwd: 0.08, out: 0.1, pitch: -18, lift: 0.14 })
|
||||
k.hand('L', { at: [0.16, -0.34, 0.28], palm: 'mid', fingers: 'fwd', shape: 'palm', elbow: [0.3, -1, 0] })
|
||||
}, 'Lower the knee; the hand comes down in front')
|
||||
f.key(1.4, (k) => {
|
||||
k.place('L', { from: 'other', fwd: 0.02, out: 0.1, pitch: -12, lift: 0.04 })
|
||||
armsHanging(k)
|
||||
}, 'Lower the foot slowly')
|
||||
f.key(1.2, (k) => {
|
||||
k.place('L', { from: 'other', out: 0.1, pitch: -8 })
|
||||
}, 'Toes touch down beside the right foot')
|
||||
f.key(1.4, (k) => {
|
||||
k.ground('L')
|
||||
k.load(0.5)
|
||||
k.sink(0)
|
||||
handsDown(k)
|
||||
}, 'Centre and stand tall')
|
||||
}
|
||||
|
||||
// Runs `drill` for the left, then mirrored for the right.
|
||||
function bothSides(drill) {
|
||||
return (f) => {
|
||||
drill(f)
|
||||
f.mirrored = true
|
||||
drill(f)
|
||||
f.mirrored = false
|
||||
}
|
||||
}
|
||||
|
||||
// ── 5. Stepping ────────────────────────────────────────────────────────
|
||||
|
||||
// One forward step with `side`, from the ball held on the other foot: heel
|
||||
// first, shift forward, then turn the toes out and draw the back foot in.
|
||||
function stepForward(f, side, first) {
|
||||
const back = side === 'L' ? 'R' : 'L'
|
||||
f.key(1.6, (k) => {
|
||||
k.place(side, { from: 'other', fwd: STEP, out: TRACK, pitch: 18 })
|
||||
}, first ? 'Step forward, heel first, like a cat: no weight yet' : null)
|
||||
f.key(2.0, (k) => {
|
||||
k.ground(side)
|
||||
k.load(side, 0.7)
|
||||
}, first ? 'Roll onto the foot and shift forward into a bow stance' : null)
|
||||
f.key(1.2, (k) => {
|
||||
k.load(back, 0.75)
|
||||
k.pitch(side, 20)
|
||||
}, first ? 'Sit back a little and raise the front toes' : null)
|
||||
f.key(0.9, (k) => {
|
||||
k.pivot(side, 45, 'heel')
|
||||
}, first ? 'Turn the front toes out' : null)
|
||||
f.key(1.4, (k) => {
|
||||
k.ground(side)
|
||||
k.load(side, 0.85)
|
||||
}, first ? 'Shift forward onto the turned foot' : null)
|
||||
f.key(1.7, (k) => {
|
||||
k.load(side)
|
||||
k.place(back, { from: 'other', out: 0.12, pitch: -22 })
|
||||
}, first ? 'Draw the back foot in beside it, toes touching' : null)
|
||||
}
|
||||
|
||||
function forwardStepping(f) {
|
||||
softenKnees(f, 0.06)
|
||||
f.key(1.5, (k) => {
|
||||
k.load('R')
|
||||
k.sink(SINK)
|
||||
handsOnHips(k)
|
||||
}, 'Hands on the hips; sit onto the right leg')
|
||||
f.key(1.0, (k) => {
|
||||
k.place('L', { from: 'other', out: 0.12, pitch: -22 })
|
||||
}, 'Left toes touch beside the right foot')
|
||||
stepForward(f, 'L', true)
|
||||
stepForward(f, 'R', false)
|
||||
stepForward(f, 'L', false)
|
||||
stepForward(f, 'R', false)
|
||||
f.key(1.4, (k) => {
|
||||
k.ground('L')
|
||||
k.load('L')
|
||||
}, 'Set the left heel down and shift onto it')
|
||||
f.key(1.0, (k) => {
|
||||
k.toes('R', 0)
|
||||
}, 'Turn the right toes back in')
|
||||
f.key(1.5, (k) => {
|
||||
k.load(0.5)
|
||||
k.sink(0)
|
||||
handsDown(k)
|
||||
}, 'Centre and stand tall')
|
||||
}
|
||||
|
||||
// One step backward with `side`: toes touch down behind, the heel lowers
|
||||
// turning out, the weight sits back and the front foot straightens.
|
||||
function stepBack(f, side, first) {
|
||||
const front = side === 'L' ? 'R' : 'L'
|
||||
f.key(1.0, (k) => {
|
||||
k.lift(side, 0.05, -10)
|
||||
}, first ? 'Lift the foot that carries no weight' : null)
|
||||
f.key(1.6, (k) => {
|
||||
k.place(side, { from: 'other', fwd: -0.42, out: 0.22, turn: 20, pitch: -20 })
|
||||
}, first ? 'Step back and a little to the side, toes first' : null)
|
||||
f.key(1.4, (k) => {
|
||||
k.pivot(side, 25, 'ball')
|
||||
k.pitch(side, 0)
|
||||
}, first ? 'Lower the heel as the toes turn out' : null)
|
||||
f.key(1.5, (k) => {
|
||||
k.load(side)
|
||||
}, first ? 'Sit back onto it' : null)
|
||||
f.key(1.0, (k) => {
|
||||
k.toes(front, 0, 'ball')
|
||||
k.pitch(front, -14)
|
||||
}, first ? 'The empty front foot straightens on its ball, heel light' : null)
|
||||
}
|
||||
|
||||
function backwardStepping(f) {
|
||||
softenKnees(f, 0.06)
|
||||
f.key(1.5, (k) => {
|
||||
k.load('R')
|
||||
k.sink(SINK)
|
||||
handsOnHips(k)
|
||||
}, 'Hands on the hips; sit onto the right leg')
|
||||
stepBack(f, 'L', true)
|
||||
stepBack(f, 'R', false)
|
||||
stepBack(f, 'L', false)
|
||||
stepBack(f, 'R', false)
|
||||
f.key(1.4, (k) => {
|
||||
k.pitch('L', 0)
|
||||
k.place('L', { from: 'other', fwd: 0, out: 0.16, pitch: -10 })
|
||||
}, 'Draw the front foot back beside the other')
|
||||
f.key(1.3, (k) => {
|
||||
k.ground('L')
|
||||
k.load('L')
|
||||
}, 'Shift onto the left foot')
|
||||
f.key(1.0, (k) => {
|
||||
k.toes('R', 0)
|
||||
}, 'Turn the right toes back in')
|
||||
f.key(1.5, (k) => {
|
||||
k.load(0.5)
|
||||
k.sink(0)
|
||||
handsDown(k)
|
||||
}, 'Centre and stand tall')
|
||||
}
|
||||
|
||||
function sideStepping(f) {
|
||||
stepOut(f, SHOULDER_WIDTH)
|
||||
f.key(1.5, (k) => {
|
||||
k.sink(SINK)
|
||||
handsOnHips(k)
|
||||
}, 'Hands on the hips; sink into the legs')
|
||||
for (let round = 0; round < 3; round += 1) {
|
||||
const first = round === 0
|
||||
f.key(1.5, (k) => {
|
||||
k.load('R')
|
||||
}, first ? 'Shift onto the right leg' : null)
|
||||
f.key(1.6, (k) => {
|
||||
k.place('L', { from: 'other', out: 0.48, pitch: -10 })
|
||||
}, first ? 'Step the left foot out to the side, toes first' : null)
|
||||
f.key(1.5, (k) => {
|
||||
k.ground('L')
|
||||
k.load('L')
|
||||
}, first ? 'Lower the heel and shift onto the left leg' : null)
|
||||
f.key(1.6, (k) => {
|
||||
k.place('R', { from: 'other', out: 0.22, pitch: -10 })
|
||||
}, first ? 'Bring the right foot in, feet parallel' : null)
|
||||
f.key(1.2, (k) => {
|
||||
k.ground('R')
|
||||
k.load(0.5)
|
||||
}, first ? 'Lower the heel; the height stays level' : null)
|
||||
}
|
||||
f.key(1.5, (k) => {
|
||||
k.load('L')
|
||||
k.sink(0.04)
|
||||
}, 'Shift onto the left leg and rise a little')
|
||||
f.key(1.2, (k) => {
|
||||
k.place('R', { from: 'other', out: 0.1, pitch: -10 })
|
||||
}, 'Bring the right foot beside the left')
|
||||
f.key(1.4, (k) => {
|
||||
k.ground('R')
|
||||
k.load(0.5)
|
||||
k.sink(0)
|
||||
handsDown(k)
|
||||
}, 'Centre and stand tall')
|
||||
}
|
||||
|
||||
// ── 6. Hand shapes ─────────────────────────────────────────────────────
|
||||
|
||||
// A hand drawn back to the waist, palm up.
|
||||
function palmAtWaist(k, side) {
|
||||
k.hand(side, { at: [0.17, -0.46, 0.1], palm: 'up', fingers: 'fwd', shape: 'palm', elbow: [0.4, -1, -0.6] })
|
||||
}
|
||||
|
||||
function fistAtWaist(k, side) {
|
||||
k.hand(side, { at: [0.17, -0.45, 0.06], palm: 'up', fingers: 'fwd', shape: 'fist', elbow: [0.3, -1, -0.7] })
|
||||
}
|
||||
|
||||
function palmDrill(f) {
|
||||
stepOut(f)
|
||||
f.key(2.2, (k) => {
|
||||
k.sink(0.08)
|
||||
palmAtWaist(k, 'L')
|
||||
palmAtWaist(k, 'R')
|
||||
}, 'Draw both hands to the waist, palms up')
|
||||
f.key(2.2, (k) => {
|
||||
k.hands({ at: [0.14, -0.1, 0.34], palm: 'fwd', fingers: 'up', shape: 'palm', elbow: [0.4, -1, -0.2] })
|
||||
}, 'Tai Chi palm: fingers relaxed and slightly apart, wrist settled')
|
||||
for (let round = 0; round < 2; round += 1) {
|
||||
for (const side of ['R', 'L']) {
|
||||
const other = side === 'L' ? 'R' : 'L'
|
||||
f.key(2.4, (k) => {
|
||||
k.waist(side === 'R' ? 15 : -15)
|
||||
k.hand(side, { at: [0.02, -0.06, 0.52], palm: [0, -0.35, 1], fingers: [0, 1, 0.35], shape: 'palm', elbow: [0.4, -1, 0] })
|
||||
palmAtWaist(k, other)
|
||||
k.look(side)
|
||||
}, round === 0 ? `Push the ${side === 'L' ? 'left' : 'right'} palm forward; the other returns to the waist` : null)
|
||||
}
|
||||
}
|
||||
f.key(2.2, (k) => {
|
||||
k.waist(0)
|
||||
palmAtWaist(k, 'L')
|
||||
palmAtWaist(k, 'R')
|
||||
k.look('fwd')
|
||||
}, 'Both hands back to the waist')
|
||||
stepIn(f)
|
||||
}
|
||||
|
||||
function fistDrill(f) {
|
||||
stepOut(f)
|
||||
f.key(2.2, (k) => {
|
||||
k.sink(0.08)
|
||||
fistAtWaist(k, 'L')
|
||||
fistAtWaist(k, 'R')
|
||||
}, 'Close the hands into loose fists at the waist')
|
||||
for (let round = 0; round < 2; round += 1) {
|
||||
for (const side of ['R', 'L']) {
|
||||
const other = side === 'L' ? 'R' : 'L'
|
||||
f.key(2.2, (k) => {
|
||||
k.waist(side === 'R' ? 12 : -12)
|
||||
k.hand(side, { at: [0.03, -0.16, 0.5], palm: 'mid', fingers: 'fwd', shape: 'fist', elbow: [0.3, -1, -0.2] })
|
||||
fistAtWaist(k, other)
|
||||
k.look('fwd')
|
||||
}, round === 0 ? `Punch with the ${side === 'L' ? 'left' : 'right'}: the fist turns upright, never locked straight` : null)
|
||||
}
|
||||
}
|
||||
f.key(2.2, (k) => {
|
||||
k.waist(0)
|
||||
fistAtWaist(k, 'L')
|
||||
fistAtWaist(k, 'R')
|
||||
}, 'Both fists back to the waist')
|
||||
f.key(1.8, (k) => {
|
||||
palmAtWaist(k, 'L')
|
||||
palmAtWaist(k, 'R')
|
||||
}, 'Open the hands')
|
||||
stepIn(f)
|
||||
}
|
||||
|
||||
function hookDrill(f) {
|
||||
stepOut(f)
|
||||
f.key(2.2, (k) => {
|
||||
k.sink(0.08)
|
||||
k.hand('R', { at: [0.1, -0.12, 0.36], palm: 'up', fingers: 'fwd', shape: 'palm', elbow: [0.4, -1, -0.2] })
|
||||
palmAtWaist(k, 'L')
|
||||
}, 'Raise the right hand in front, palm up')
|
||||
f.key(2.2, (k) => {
|
||||
k.hand('R', { at: [0.22, -0.08, 0.4], palm: 'back+mid', fingers: 'down+fwd', shape: 'hook', elbow: [0.4, -1, -0.2] })
|
||||
}, 'Gather the fingertips together and let the wrist drop: the hook')
|
||||
f.key(2.6, (k) => {
|
||||
k.waist(-25)
|
||||
k.hand('R', { at: [0.6, 0.0, 0.16], palm: 'back+mid', fingers: 'down', shape: 'hook', elbow: [0, -0.3, -1] })
|
||||
k.look('R')
|
||||
}, 'Extend the hook out to the right at shoulder height')
|
||||
f.key(2.6, (k) => {
|
||||
k.waist(10)
|
||||
k.hand('L', { at: [0.1, -0.04, 0.46], palm: 'fwd+out', fingers: 'up', shape: 'palm', elbow: [0.4, -1, 0] })
|
||||
k.look('L')
|
||||
}, 'Turn left and push the left palm forward, as in Single Whip')
|
||||
f.hold(2.0, 'Hook and palm stretch gently apart; shoulders stay down')
|
||||
f.key(2.4, (k) => {
|
||||
k.waist(0)
|
||||
k.hand('R', { at: [0.2, -0.3, 0.3], palm: 'down', fingers: 'fwd', shape: 'palm', elbow: [0.4, -1, -0.3] })
|
||||
k.hand('L', { at: [0.2, -0.3, 0.3], palm: 'down', fingers: 'fwd', shape: 'palm', elbow: [0.4, -1, -0.3] })
|
||||
k.look('fwd')
|
||||
}, 'Open the hook and bring both hands in front')
|
||||
stepIn(f)
|
||||
}
|
||||
|
||||
export const FOUNDATIONS = [
|
||||
{
|
||||
id: 'posture',
|
||||
title: 'Posture and breathing',
|
||||
summary: 'How to stand, and how the breath moves with the hands.',
|
||||
drills: [
|
||||
{ id: 'standing-posture', title: 'Standing posture', summary: 'Feet shoulder width, knees soft, crown lifted, arms relaxed.', view: 'front', build: standingPosture },
|
||||
{ id: 'breathing', title: 'Breathing with the hands', summary: 'Palms rise with the in-breath and sink with the out-breath.', view: 'front', build: breathing },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'warm-up',
|
||||
title: 'Warm-up',
|
||||
summary: 'Gentle loosening of the neck, shoulders, waist and knees.',
|
||||
drills: [
|
||||
{ id: 'neck', title: 'Neck turns and nods', summary: 'Slow head turns and nods, never forced.', view: 'front', build: neck },
|
||||
{ id: 'arm-circles', title: 'Arm and shoulder circles', summary: 'Large slow arm circles, forward and back.', view: 'threeQuarter', build: armCircles },
|
||||
{ id: 'waist-turns', title: 'Waist turns', summary: 'The waist turns, the arms swing loosely, the knees stay still.', view: 'front', build: waistTurns },
|
||||
{ id: 'knee-circles', title: 'Knee circles', summary: 'Hands on the hips, small circles of the knees both ways.', view: 'threeQuarter', build: kneeCircles },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'standing-meditation',
|
||||
title: 'Standing meditation',
|
||||
summary: 'Zhan zhuang: standing still with rounded arms and quiet breath.',
|
||||
drills: [
|
||||
{ id: 'hug-the-tree', title: 'Hug the tree', summary: 'Arms rounded at chest height, knees soft, breathing slowly.', view: 'threeQuarter', build: hugTheTree },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'stances',
|
||||
title: 'Stances',
|
||||
summary: 'The stances every movement of the form is built from.',
|
||||
drills: [
|
||||
{ id: 'horse-stance', title: 'Horse stance', summary: 'Wide stance, weight even, knees over the toes.', view: 'front', build: horseStance },
|
||||
{ id: 'bow-stance', title: 'Bow stance', summary: '70% on the bent front leg, back leg long; left, then right.', view: 'side', build: bothSides(bowLeft) },
|
||||
{ id: 'empty-stance', title: 'Empty stance', summary: 'All the weight on the back leg, the front foot light; left, then right.', view: 'side', build: bothSides(emptyLeft) },
|
||||
{ id: 'single-leg-stance', title: 'Single-leg stance', summary: 'Standing on one leg with the other knee raised; left, then right.', view: 'front', build: bothSides(singleLegLeft) },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'stepping',
|
||||
title: 'Stepping',
|
||||
summary: 'Moving the weight completely before a foot moves.',
|
||||
drills: [
|
||||
{ id: 'forward-stepping', title: 'Forward stepping', summary: 'Cat step: heel first, shift, toes out, draw in.', view: 'side', build: forwardStepping },
|
||||
{ id: 'backward-stepping', title: 'Backward stepping', summary: 'Toes first behind, heel turns out, sit back, as in Repulse the Monkey.', view: 'side', build: backwardStepping },
|
||||
{ id: 'side-stepping', title: 'Side stepping', summary: 'Stepping sideways at one height, as in Cloud Hands.', view: 'front', build: sideStepping },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'hand-shapes',
|
||||
title: 'Hand shapes',
|
||||
summary: 'The open palm, the fist and the hook.',
|
||||
drills: [
|
||||
{ id: 'palm', title: 'Open palm', summary: 'Alternating palm pushes with a small waist turn.', view: 'threeQuarter', build: palmDrill },
|
||||
{ id: 'fist', title: 'Fist', summary: 'A loose fist punching from the waist, turning upright.', view: 'threeQuarter', build: fistDrill },
|
||||
{ id: 'hook', title: 'Hook', summary: 'Fingertips gathered, wrist dropped, as in Single Whip.', view: 'threeQuarter', build: hookDrill },
|
||||
],
|
||||
},
|
||||
]
|
||||
@@ -0,0 +1,44 @@
|
||||
// Hand shapes and positions that recur through the form.
|
||||
//
|
||||
// Positions are [out, up, fwd] metres from the point between the shoulders
|
||||
// in the chest frame; `out` is toward the hand's own side, so a negative
|
||||
// value crosses the midline.
|
||||
|
||||
export function other(side) {
|
||||
return side === 'L' ? 'R' : 'L'
|
||||
}
|
||||
|
||||
// Arms relaxed at the sides.
|
||||
export function handsDown(k) {
|
||||
k.hands({ at: [0.2, -0.58, 0.04], palm: 'mid', fingers: 'down', shape: 'palm', elbow: [0.35, -1, -0.25] })
|
||||
}
|
||||
|
||||
// Holding a ball in front of the `side` chest: that hand on top palm down,
|
||||
// the other hand underneath palm up.
|
||||
export function holdBall(k, side, { size = 1, fwd = 0.27 } = {}) {
|
||||
const top = side
|
||||
const bottom = other(side)
|
||||
k.hand(top, { at: [0.1, -0.13, fwd], palm: 'down', fingers: 'mid+fwd', shape: 'palm', elbow: [0.6, -1, -0.2] })
|
||||
k.hand(bottom, { at: [-0.06, -0.13 - 0.3 * size, fwd - 0.02], palm: 'up', fingers: 'mid+fwd', shape: 'palm', elbow: [0.4, -1, -0.3] })
|
||||
}
|
||||
|
||||
// A hand pressing down beside the hip, fingers forward.
|
||||
export function pressByHip(k, side, { fwd = 0.14 } = {}) {
|
||||
k.hand(side, { at: [0.22, -0.52, fwd], palm: 'down', fingers: 'fwd', shape: 'palm', elbow: [0.5, -1, -0.4] })
|
||||
}
|
||||
|
||||
// A hand raised in front at eye level, palm obliquely up and in.
|
||||
export function raiseToEyes(k, side, { out = 0.08, up = 0.1, fwd = 0.42 } = {}) {
|
||||
k.hand(side, { at: [out, up, fwd], palm: [-0.55, 0.75, -0.3], fingers: 'fwd+up+out', shape: 'palm', elbow: [0.3, -1, 0] })
|
||||
}
|
||||
|
||||
// A standing palm pushing forward, fingers up.
|
||||
export function pushPalm(k, side, { out = 0.06, up = -0.04, fwd = 0.5 } = {}) {
|
||||
k.hand(side, { at: [out, up, fwd], palm: 'fwd', fingers: 'up', shape: 'palm', elbow: [0.4, -1, 0] })
|
||||
}
|
||||
|
||||
// Height and stance sizes for the reference figure. The form stays at one
|
||||
// height once it has sunk: no bobbing up and down between movements.
|
||||
export const SINK = 0.14
|
||||
export const STEP = 0.48
|
||||
export const TRACK = 0.2
|
||||
@@ -0,0 +1,37 @@
|
||||
// The 24-form in order, and the lessons that teach it.
|
||||
//
|
||||
// Facing (degrees, positive turns left) runs continuously through the
|
||||
// form: the opening travels to the left (90), Grasp the Bird's Tail turns
|
||||
// right to -90, Single Whip back to 90, the kicks turn round to 270, and
|
||||
// Cross Hands returns to the starting direction (0, a full turn later).
|
||||
|
||||
import * as lesson1 from './lesson1.js'
|
||||
import * as lesson2 from './lesson2.js'
|
||||
import * as lesson3 from './lesson3.js'
|
||||
import * as lesson4 from './lesson4.js'
|
||||
import * as lesson5 from './lesson5.js'
|
||||
import * as lesson6 from './lesson6.js'
|
||||
import * as lesson7 from './lesson7.js'
|
||||
import * as lesson8 from './lesson8.js'
|
||||
|
||||
const MODULES = [lesson1, lesson2, lesson3, lesson4, lesson5, lesson6, lesson7, lesson8]
|
||||
|
||||
const TITLES = [
|
||||
'Opening',
|
||||
'Brushing and repulsing',
|
||||
'Grasp the Bird\'s Tail',
|
||||
'Single Whip and Cloud Hands',
|
||||
'Kicks and strikes',
|
||||
'Snake Creeps Down',
|
||||
'Shuttles, Needle and Fan',
|
||||
'Closing',
|
||||
]
|
||||
|
||||
export const LESSONS = MODULES.map((module, index) => ({
|
||||
number: index + 1,
|
||||
title: TITLES[index],
|
||||
startPose: module.startPose ?? null,
|
||||
moves: module.MOVES,
|
||||
}))
|
||||
|
||||
export const FORM_MOVES = MODULES.flatMap((module) => module.MOVES)
|
||||
@@ -0,0 +1,132 @@
|
||||
// Lesson 1: Commencing, Part the Wild Horse's Mane, White Crane Spreads
|
||||
// Its Wings. The form starts facing the audience; the first movements
|
||||
// travel to the practitioner's left.
|
||||
|
||||
import { SINK, STEP, TRACK, holdBall, other, pressByHip, raiseToEyes } from './hands.js'
|
||||
|
||||
// 1. Commencing.
|
||||
export function commencing(f) {
|
||||
f.hold(2.0, 'Stand naturally: feet together, arms relaxed, eyes level')
|
||||
f.key(1.3, (k) => {
|
||||
k.load('R')
|
||||
}, 'Settle the weight onto the right foot')
|
||||
f.key(0.9, (k) => {
|
||||
k.lift('L', 0.03, -12)
|
||||
}, 'Lift the left heel, then the foot')
|
||||
f.key(1.1, (k) => {
|
||||
k.place('L', { from: 'R', out: 0.3, pitch: -10 })
|
||||
}, 'Step out to shoulder width, toes first')
|
||||
f.key(1.3, (k) => {
|
||||
k.ground('L')
|
||||
k.load(0.5)
|
||||
}, 'Lower the heel and centre the weight')
|
||||
f.key(3.2, (k) => {
|
||||
k.hands({ at: [0.18, -0.02, 0.48], palm: 'down', fingers: 'fwd', elbow: [0.3, -1, -0.3] })
|
||||
}, 'Float both arms up to shoulder height, palms down')
|
||||
f.key(3.2, (k) => {
|
||||
k.sink(0.1)
|
||||
k.hands({ at: [0.17, -0.44, 0.25], palm: 'down', fingers: 'fwd', elbow: [0.45, -1, -0.45] })
|
||||
}, 'Bend the knees and press the palms down to the belly')
|
||||
}
|
||||
|
||||
// One Part the Wild Horse's Mane to `side`, starting from the ball held on
|
||||
// the other side with the `side` foot drawn in.
|
||||
function partMane(f, side, { turn = 0, backPivot = 0 } = {}) {
|
||||
const back = other(side)
|
||||
f.key(1.2, (k) => {
|
||||
k.turn(turn)
|
||||
k.place(side, { from: back, fwd: STEP, out: TRACK, pitch: 18 })
|
||||
k.waist(side === 'L' ? -20 : 20)
|
||||
}, `Step the ${side === 'L' ? 'left' : 'right'} heel out to the front`)
|
||||
f.key(2.0, (k) => {
|
||||
k.ground(side)
|
||||
if (backPivot) {
|
||||
k.pivot(back, backPivot, 'ball')
|
||||
}
|
||||
k.load(side, 0.7)
|
||||
k.sink(SINK)
|
||||
k.waist(0)
|
||||
raiseToEyes(k, side)
|
||||
pressByHip(k, back)
|
||||
k.look(side)
|
||||
}, 'Bow stance: the front hand opens to eye level, the back hand presses down')
|
||||
}
|
||||
|
||||
// Sits back, turns the front toes out and gathers the ball on that side.
|
||||
function gatherBall(f, side) {
|
||||
const back = other(side)
|
||||
f.key(1.2, (k) => {
|
||||
k.load(back, 0.75)
|
||||
k.pitch(side, 20)
|
||||
k.waist(side === 'L' ? 8 : -8)
|
||||
}, 'Sit back and raise the front toes')
|
||||
f.key(0.8, (k) => {
|
||||
k.pivot(side, 45, 'heel')
|
||||
}, 'Turn the front toes out')
|
||||
f.key(1.3, (k) => {
|
||||
k.ground(side)
|
||||
k.load(side, 0.8)
|
||||
k.waist(side === 'L' ? 30 : -30)
|
||||
holdBall(k, side)
|
||||
k.look(side)
|
||||
}, `Shift forward and hold the ball on the ${side === 'L' ? 'left' : 'right'}`)
|
||||
f.key(1.7, (k) => {
|
||||
k.load(side)
|
||||
k.place(back, { from: side, out: 0.12, fwd: 0, pitch: -24 })
|
||||
}, 'Draw the back foot in, toes touching')
|
||||
}
|
||||
|
||||
// 2. Part the Wild Horse's Mane, left, right, left.
|
||||
export function wildHorse(f) {
|
||||
f.key(1.4, (k) => {
|
||||
k.load('R')
|
||||
k.sink(SINK)
|
||||
k.waist(-30)
|
||||
holdBall(k, 'R')
|
||||
k.look('R')
|
||||
}, 'Turn slightly right and hold the ball on the right')
|
||||
f.key(1.0, (k) => {
|
||||
k.place('L', { from: 'R', out: 0.12, pitch: -24 })
|
||||
}, 'Draw the left foot in, toes touching')
|
||||
// Turn to the left: the right heel pushes out behind the new direction.
|
||||
partMane(f, 'L', { turn: 90, backPivot: -45 })
|
||||
gatherBall(f, 'L')
|
||||
partMane(f, 'R')
|
||||
gatherBall(f, 'R')
|
||||
partMane(f, 'L')
|
||||
}
|
||||
|
||||
// 3. White Crane Spreads Its Wings.
|
||||
export function whiteCrane(f) {
|
||||
f.key(1.3, (k) => {
|
||||
k.load('L', 0.95)
|
||||
k.waist(20)
|
||||
holdBall(k, 'L')
|
||||
k.look('L')
|
||||
}, 'Turn slightly left and hold the ball on the left')
|
||||
f.key(1.0, (k) => {
|
||||
k.load('L')
|
||||
k.place('R', { from: 'L', fwd: -0.34, out: 0.12, turn: 45, pitch: -15 })
|
||||
}, 'Bring the right foot a half step in behind')
|
||||
f.key(1.2, (k) => {
|
||||
k.ground('R')
|
||||
k.load('R')
|
||||
k.waist(-25)
|
||||
k.hand('R', { at: [0.18, 0.08, 0.3], palm: 'mid+back', fingers: 'up+mid', elbow: [0.6, -1, 0] })
|
||||
k.hand('L', { at: [0.15, -0.35, 0.28], palm: 'down', fingers: 'fwd+mid' })
|
||||
k.look('R')
|
||||
}, 'Sit back onto the right leg and turn slightly right')
|
||||
f.key(1.8, (k) => {
|
||||
k.place('L', { from: 'R', fwd: 0.3, out: 0.12, pitch: -16 })
|
||||
k.waist(0)
|
||||
k.hand('R', { at: [0.2, 0.22, 0.28], palm: 'mid+back', fingers: 'up+mid', elbow: [0.6, -1, 0] })
|
||||
k.hand('L', { at: [0.2, -0.5, 0.18], palm: 'down', fingers: 'fwd' })
|
||||
k.look('fwd')
|
||||
}, 'Empty stance: right hand rises by the temple, left hand presses by the hip')
|
||||
}
|
||||
|
||||
export const MOVES = [
|
||||
{ id: 'commencing', number: 1, lesson: 1, title: 'Commencing', build: commencing, endFacing: 0 },
|
||||
{ id: 'wild-horse', number: 2, lesson: 1, title: 'Part the Wild Horse\'s Mane', build: wildHorse, endFacing: 90 },
|
||||
{ id: 'white-crane', number: 3, lesson: 1, title: 'White Crane Spreads Its Wings', build: whiteCrane, endFacing: 90 },
|
||||
]
|
||||