课程介绍Course Introduction
课程基本信息、课程结构与学习路径。Course information, structure, and learning path.
课程基本信息Course Information
| 课程代码Course Code | 1320503 |
|---|---|
| 开课学院College | 艺术设计学院College of Art and Design |
| 课程名称(中文)Course Name (Chinese) | 数智编程基础Fundamentals of Intelligent Programming |
| 课程名称(英文)Course Name (English) | Fundamentals of Intelligent Programming |
| 面向专业Major | 数字媒体艺术Digital Media Arts |
| 学分Credits | 3 |
| 总学时Total Hours | 60 |
| 理论学时Lecture Hours | 30 |
| 实验学时Lab Hours | 30 |
| 线上学时Online Hours | 0 |
| 上机学时Computer Hours | 0 |
| 先修课程Prerequisites | 字体设计、形态语言、版面设计与印刷、数字设计Typography, Form Language, Layout Design and Print, Digital Design |
| 校企合作共讲课程Joint Industry Course | 否No |
课程简介Course Introduction
中文简介Chinese Introduction
本课程面向数字媒体艺术专业本科生,无需编程基础,以p5.js为核心工具,全程在浏览器中完成学习与创作。课程按“先感性后理性”的思路组织:先让学生看到代码能画出什么,再逐步理解背后的逻辑。内容分四个模块。第一模块(22学时)覆盖形状、色彩、变换、变量、动画、条件、循环、函数与数组等编程基础,每个概念配一个可运行的代码示例。第二模块(13学时)引入图像、文字、声音,让学生学会用代码处理多媒体素材,搭建带滑块和按钮的交互界面。第三模块(16学时)学生用自然语言向AI描述想要的画面,AI生成p5.js代码,学生在“描述、生成、观察、改进提示词、调参”的循环中反复迭代,做出粒子系统、Perlin噪声、分形、群集和三维空间等作品。第四模块(9学时)为个人创作项目,从构思做到线上部署。
英文简介English Introduction
This course introduces digital media art students to creative coding through p5.js. No programming background is assumed. Everything runs in the browser. The course follows a sensory-first approach: students first see what code can draw, then understand the logic behind it. It is organized into four modules. Module 1 (22 hours) covers shapes, color, transforms, variables, animation, conditions, loops, functions, and arrays, with a runnable code example for each concept. Module 2 (13 hours) introduces image, text, and sound, and guides students to process multimedia materials with code while building interactive interfaces with sliders and buttons. Module 3 (16 hours) asks students to describe images in natural language, let AI generate p5.js code, and iterate through description, generation, observation, prompt refinement, and parameter tuning, creating works such as particle systems, Perlin noise, fractals, swarms, and 3D space. Module 4 (9 hours) is a personal creation project, from concept to online deployment.