1. Home
  2. /
  3. Processing-py
  4. /
  5. Multiple Shapes

Multiple Shapes - Processing-py Typing CST Test

Loading…

Multiple Shapes — Processing-py Code

Draws multiple shapes with different colors on the canvas.

def setup():
	size(400, 400)
	background(255)
	fill(255, 0, 0)
	rect(50, 50, 100, 100)
	fill(0, 255, 0)
	eclipse(300, 100, 80, 80)
	fill(0, 0, 255)
	line(50, 300, 350, 300)

Processing-py Language Guide

Processing.py is a Python mode of the Processing environment, allowing Python developers to create visual arts, animations, and interactive graphics easily using the Processing API.

Primary Use Cases

  • ▸Interactive visual arts projects
  • ▸Educational tools for teaching programming and graphics
  • ▸Rapid prototyping of visual ideas
  • ▸Data visualization and generative design
  • ▸Creative coding workshops and tutorials

Notable Features

  • ▸Python syntax support in Processing IDE
  • ▸Event-driven graphics and animation
  • ▸2D and 3D graphics APIs
  • ▸Integration with Processing libraries and sound/video tools
  • ▸Cross-platform sketches runnable on desktop and web via Processing.js

Origin & Creator

Processing was created in 2001 by Casey Reas and Ben Fry. Processing.py was added later as a Python mode to enable Python programmers to use Processing.

Industrial Note

Processing.py is mainly used in education, digital arts, generative design, and creative coding prototyping rather than commercial graphics engines.

More Processing-py Typing Exercises

Hello World in Processing.pyDraw a CircleAnimated RectangleInteractive EllipseSimple Animation LoopColor Changing BackgroundBouncing BallRandom LinesMouse Trail

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher