Shape Computation Lab

DrawScript

🞩

01. A DrawScript for alphabet sorting. (a) A DrawScript with three shape rules specifying the orders between any two letters; (b) one application during the execution of the DrawScript

02. A DrawScript for alphabet sorting. (a) A DrawScript with three shape rules specifying the orders between any two letters; (b) the final result of the execution of the DrawScript

03. A DrawScript for Chinese character sorting. (a) A DrawScript with a shape rule specifying the order between the two Chinese characters 左 (left) and 右(right); (b) one application during the execution of the DrawScript

04. A DrawScript for Chinese character sorting. (a) A DrawScript with a shape rule specifying the order between the two Chinese characters 左 (left) and 右(right); (b) the final result of the execution of the DrawScript

05. A DrawScript for an unsigned binary adder. (a) Four of the rules from the DrawScript that process the addition for the first digit; (b) one application during the execution of the DrawScript

06. A DrawScript for an unsigned binary adder. (a) Four of the rules from the DrawScript that process the addition for the general digits in the second phase; (b) the final result of the execution of the DrawScript

07. A DrawScript for a Tic-Tac-Toe program. (a) Four of the rules from the DrawScript that place an “X” to avoid losing the game; (b) one application during the execution of the DrawScript

08. A DrawScript for a Tic-Tac-Toe program. (a) Four of the rules from the DrawScript that place an “X” to win the game; (b) one application during the execution of the DrawScript

09. A DrawScript for a maze solver. (a) Four of the rules from the DrawScript that close the dead ends; (b) one application during the execution of the DrawScript

10. A DrawScript for a maze solver. (a) Four of the rules from the DrawScript that close the dead ends; (b) the final result of the execution of the DrawScript

11. A DrawScript for a ladder game solver. (a) Four of the rules from the DrawScript that find the path; (b) one application during the execution of the DrawScript

12. A DrawScript for a ladder game solver. (a) Four of the rules from the DrawScript that find the path; (b) the final result of the execution of the DrawScript

15. A DrawScript for a bouncing ball animation. (a) Three rules that define ball movement; (b) one application showing ball movement during the execution of the DrawScript

16. A DrawScript for a bouncing ball animation. (a) Three rules that define ball movement; (b) one application showing ball bouncing during the execution of the DrawScript

Kurt Hong

2019

 

Keywords: Programming; Scripting; Shape Grammar Interpreter; Shape Grammars; Computer-Aided Design; Design Automation

DrawScript is a radically new environment to learn and do computation! DrawScript does programming with shapes and it be extended in a complete scripting language where if/then statements, loops, conditionals and so forth can be entirely declared in terms of shapes and visual symbols. In shape machine a line of code is literally a line or an arrangement of geometric lines!