arXiv:2608.26614cs.SEAug 2026

Manuscript Offprint

arXiv:2608.26614

Processing/p5 Defined through Practice and Learning

Kit Kuksenok, Lee Tusman

This article has been accepted for publication in Computer. This is the author's version which has not been fully edited and content may change prior to final publication. Citation information: DOI 10.1109/MC.2026.3697659

Department: Head

Editor: Name, xxxx@email

Processing/p5 Defined through Practice and Learning

Kit Kuksenok

Processing Foundation

Lee Tusman

State University of New York at Purchase

Abstract—Processing/p5 libraries across different programming languages enact consistent priorities for creative coding as a designed experience. While different programming language ecosystems, like Java and JavaScript, are each associated with their own affordances, community norms, and patterns of use, Processing/p5 sketches across these languages share similarities. Based on case studies of building an implementation of Processing/p5 in two host languages, JavaScript and Lua, we propose a list of software decision-making guiding aspects that constitute Processing/p5, regardless of host language. We discuss this framework in the context of decisions in other exploratory and creative tools that demonstrate how each of the guiding aspects can be operationalized differently than in the case studies. The proposed list highlights opportunities for learning, research, and artistic practice through creation of new Processing/p5 libraries for creative coding and algorithmic art.

■ PROCESSING (Java) and p5.js (JavaScript) are some of the most common open-source tools that people use to learn and make algorithmic art, also known as generative art. Users of these tools can write short programs to create drawings, sound, and interactive artworks. Beginners need no programming knowledge to create artworks with a few lines of code. Artists and educators can also develop design systems and community tools. Although Java and JavaScript are different, Processing (Java) and p5.js (JavaScript) share intentional commonalities in practice and for learners. This paper introduces a definition to refer to these commonalities, and proposes five priorities that can guide the design of creative coding experience.

After nearly 25 years since the release of Processing Java, and over 12 years since development began on p5.js, the ecosystem around these two projects includes around 300 add-on libraries, over five thousand forks, and millions of users worldwide. Both are creative coding tools that imagine "what it would look like for code to become both a creative medium and part of the creative process itself" [1]. These Processing/p5 implementations have been co-created with hundreds of contributors and designed for expressivity and learning, inclusive community [2], and offering "a unique level of variety and control" to artists [3]. However, what, exactly, is Processing/p5?

As one example, processing.py gives a holistic definition: “Processing is not a single programming language, but an arts-centric system for learning, teaching, and making visual form with code” [4]. Aside from this “Python mode” of Processing, there are

COMPUTER

Published by the IEEE Computer Society XXXX-XXXX© 2026 IEEE

© 2026 IEEE. All rights reserved, including rights for text and data mining and training of artificial intelligence and similar technologies. Personal use is permitted, but republication/redistribution requires IEEE permission. See https://www.ieee.org/publications/rights/index.html for more information.

This article has been accepted for publication in Computer. This is the author's version which has not been fully edited and content may change prior to final publication. Citation information: DOI 10.1109/MC.2026.3697659

Department Head

numerous other implementations of Processing/p5 or libraries that translate a familiar set of tools and sensibilities across other languages. In this essay, we use “Processing/p5” intentionally without reference to specific host language to describe commonly-held technical and community values of many of these projects. Based on reflections on the history of Processing/p5 in JavaScript (including p5.js, https://p5js.org) and the recent creation of Processing/p5 in Lua (L5, https://l5lua.org), we articulate five aspects that guide the design of a creative coding experience:

  • Situatedness of development environment—The tool is designed to meet users in their existing context: provide accessible entry points (dedicated software, web editors and bundled environments) and support the devices users already have and are familiar with.

  • Documentation for access and inclusion—Can include beginner-friendly, little-to-no-prerequisites content, informed by learners and teachers; localization of both reference documentation and error messages; and intentional prioritization of other dimensions of access.

  • Iteration & exploration—Prioritized through intuitive defaults, open-ended execution using the setup() / draw() sketch structure, minimal boilerplate, example driven learning, and immediate visual feedback.

  • Sequential instructions—Sketch code can be written and read in a linear progression with observable accumulation of graphical state, such as a queue to push to / pop from, and imperative commands preferred to objects.

  • Learning from debugging—Through the Friendly Error System (FES) as well as naming and parameterization style, API design choices attempt to anticipate common mistakes by beginners, and orient error behavior to support learning where possible.

Creative coding as a designed experience is informed by programming language together with the development environment and technical documentation. Processing Java and p5.js are libraries for sketching with code [5] that introduce expressive consistency across host languages that, respectively, are associated with distinct developer experiences. Each aspect in the proposed framework suggests priorities to guide decision making and community engagement in design and development of a language, library, or the attendant tools, like reference documentation or development environment. In our discussion, we use examples of design and software choices in other coding environments, including Hydra, Arduino, Twine, and Jupyter Notebook, to demonstrate how similar priorities can be addressed in different ways from the choices described by the case studies.