Skip to content

Unit System #39

@shigma

Description

@shigma

对于以时间作为参数的函数, 用户往往有着不同的表达需求. 有时用户希望以"秒"为单位, 另一些时候以"拍"为单位则是更好的选择. 为了迎合这两种选择, 同时增强函数的复用性, 我建议允许用户在数字的后面跟上单位来表示这个时间量. 在 tokenizer 也相应地增加一个Unit标签. 举下面的例子:

FadeOut(1s) // 1秒
Extend({...}, 1b) // 1拍

大家对此有什么看法呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions