From 926bfc545d479046949217f1e813e0ca7d223db4 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sat, 26 Sep 2026 00:03:03 +0300 Subject: [PATCH] update doc/*/vca.md --- doc/en/vca.md | 10 ++++++++++ doc/ru/vca.md | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/doc/en/vca.md b/doc/en/vca.md index d8c0c238f..7b2bda0b5 100644 --- a/doc/en/vca.md +++ b/doc/en/vca.md @@ -86,6 +86,16 @@ For the `texture` directive, it is simpler. Example: > Here, `entities/tireman` is the name of the texture atlas containing `face_*` textures. > The texture does not necessarily have to be in an atlas. +If you do not wish to limit the animation duration via `configure` but want to loop the keyframe animation for a specific line, you can use the `period` parameter to specify the animation's repetition period in frames. Example: + +```vcd +@move by y curve linear period 24 { + @key frame 0 value 0 + @key frame 12 value 1 + @key frame 24 value 0 +} +``` + ## Expression curves The attribute describes a function `f(t) = x`, where t is time in seconds. diff --git a/doc/ru/vca.md b/doc/ru/vca.md index c4d97c2ec..2cba3c3ab 100644 --- a/doc/ru/vca.md +++ b/doc/ru/vca.md @@ -86,6 +86,16 @@ VCA файл состоит из набора директив, порядок > entities/tireman здесь - имя текстурного атласа, в котором находятся face_\* текстуры. > Текстура не обязательно должна находиться в атласе. +Если вы не хотите ограничивать длительность анимации через `configure`, но хотите зациклить анимацию по ключевым кадрам для конкретной линии, то можно использовать параметр `period` для указания периода повторения анимации в кадрах. Пример: + +```vcd +@move by y curve linear period 24 { + @key frame 0 value 0 + @key frame 12 value 1 + @key frame 24 value 0 +} +``` + ## Кривые через выражения Через атрибут описывается функция `f(t) = x` где t - время в секундах.