AniFrame:一种用于2D绘图和基于帧动画的编程语言
AniFrame: A Programming Language for 2D Drawing and Frame-Based Animation
AI总结:
本文提出面向新手的绘图与动画领域特定语言AniFrame,通过动画专用类型、帧级控制、类Python语法和数学递归支持,提升创意编程的可读性与可写性。
摘要:
创意编程是一项高度依赖实验的活动,需要将高层视觉想法转化为代码。然而,大多数用于创意编程的语言和库对初学者而言可能不够直观。本文提出AniFrame,这是一种面向绘图和动画的领域特定语言。它为新手程序员设计,具备以下特点:(i)提供动画专用的数据类型、操作和内置函数,以简化复合对象的创建和动画制作;(ii)允许通过显式指定目标对象以及起始帧和结束帧,对动画序列进行细粒度控制;(iii)通过类Python语法、类型推断,以及与语义意图密切对应的最小控制结构和关键字集合来降低学习曲线;(iv)通过支持常见数学运算、内置三角函数和用户自定义递归提升计算表达能力。我们的可用性测试表明,AniFrame有潜力在多个创意编程用例中增强可读性和可写性。AniFrame是开源的,其实现和参考资料可在https://github.com/memgonzales/aniframe-language获取。
英文摘要:
Creative coding is an experimentation-heavy activity that requires translating high-level visual ideas into code. However, most languages and libraries for creative coding may not be adequately intuitive for beginners. In this paper, we present AniFrame, a domain-specific language for drawing and animation. Designed for novice programmers, it (i) features animation-specific data types, operations, and built-in functions to simplify the creation and animation of composite objects, (ii) allows for fine-grained control over animation sequences through explicit specification of the target object and the start and end frames, (iii) reduces the learning curve through a Python-like syntax, type inferencing, and a minimal set of control structures and keywords that map closely to their semantic intent, and (iv) promotes computational expressivity through support for common mathematical operations, built-in trigonometric functions, and user-defined recursion. Our usability test demonstrates AniFrame's potential to enhance readability and writability for multiple creative coding use cases. AniFrame is open-source, and its implementation and reference are available at https://github.com/memgonzales/aniframe-language.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。