Due to the lack of a strict standard when using traditional algorithms for graphical language description, the obtained results are not accurate enough to effectively determine the size and position of the graphic display, and it is difficult to effectively support the graphic language programming control. Therefore, a new automatic programming algorithm for graphic language in visual communication design is proposed. The display size of the buffer image in the visual communication design is calculated by the fixed value method. The minimum number of layout and surface value and the highest value of surface utilization are used as the programming objective function.The ant colony algorithm is used to solve the problem, and the optimal solution is obtained. The best display position for graphics in visual communication design. The description of the graphic language is implemented by a grammatical description according to the rules and a semantic description according to abstract state machine (ASM) . Parallel flow and selection process are used to describe the parallel flow and selection process of graphic language in visual communication design. Parallel flow and selection process are used to realize automatic programming of graphic language. Through the C language, the proposed algorithm is programmed and run to achieve the purpose of automatic programming of the graphic language. The experimental results show that the user satisfaction of the proposed algorithm is 7. 792, which is significantly higher than the traditional algorithm, indicating that the proposed algorithm has better programming effect and higher practical value.%采用传统算法进行图形语言描述时, 由于缺少一个严格的标准, 导致得到的结果不够准确, 不能有效确定图形显示尺寸和位置, 难以有效支持图形语言编排控制.因此, 提出一种新的视觉传达设计中图形语言自动编排算法.通过固定值法对视觉传达设计中缓冲区图像的显示尺寸进行计算, 将编排版面数量最小值和表面利用度最高值作为编排目标函数;采用蚁群算法对其进行求解, 得到最优解, 获取视觉传达设计中图形最佳显示位置.通过依据规则的语法描述与依据ASM (abstract state machine) 的语义描述实现对图形语言的描述.利用并行与选择标识对视觉传达设计中图形语言的并行流程与选择流程进行描述, 采用并行流程与选择流程实现图形语言自动编排.通过C语言对所提算法进行程序编写和运行, 达到图形语言自动编排的目的.分析实验结果可知, 所提算法的用户满意度为7. 792, 明显高于传统算法, 说明所提算法编排效果更好, 实用价值更高.
展开▼