Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Live Stream #18

1.6K views
•
February 9, 2016
by
The Coding Train
YouTube video player
Live Stream #18

TL;DR

Learn how to create objects in Processing and p5.js that store a history of their movements and how to record your creations as video files.

Transcript

in New York hello hello how does the focus okay check your chat voice not good okay one's gonna send the voices not good anyone here I'm going to the hole for a second because when we go too far for audio it's not good if you're watching this in the archives on ticket in 30 seconds yes the voice on the cracker okay let me see what I can do about th... Read More

Key Insights

  • 🏪 By storing an object's path as an array, you can draw a trail for the object.
  • 📌 The push() function is used to add new entries to an array, such as the object's current location.
  • 📁 The saveFrame() function allows you to save each frame of your animation as an image file, which can then be compiled into a video file.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How can I make an object in Processing store its path as it moves around the screen?

You can create an object with x and y coordinates and an array called history. In the object's update function, use the push() function to add the current x and y values to the history array.

Q: Can I erase the background while still maintaining the object's path?

Yes, you can use the background() function to erase the background, but you'll need to draw the object and its trail in each frame to make sure they are displayed.

Q: How can I limit the length of the object's path?

You can use an if statement to check if the history array's length exceeds a certain value. If it does, you can use the splice() function to remove the oldest entry and keep the array at a desired length.

Q: How can I record my creations as video files?

You can use the saveFrame() or save() functions in Processing to save each frame of your animation as an image file. Then, you can use software like After Effects or the processing moviemaker tool to compile the images into a video file.

Summary & Key Takeaways

  • This video tutorial demonstrates how to create objects in Processing and p5.js that move around the screen and store a history of their paths.

  • By using arrays and the push() function, the objects can store their previous locations and draw a trail for themselves.

  • The tutorial also shows how to record these creations as video files, which can be useful for uploading to websites or incorporating into other projects.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from The Coding Train 📚

Classifying Poses with ml5.js Part 2 thumbnail
Classifying Poses with ml5.js Part 2
The Coding Train
ITP/IMA Winter Show 2019 thumbnail
ITP/IMA Winter Show 2019
The Coding Train
Text Generation using Spell with Nabil Hassein thumbnail
Text Generation using Spell with Nabil Hassein
The Coding Train
Computer Mouse Conference Demos! (node.js + tensorflow.js) thumbnail
Computer Mouse Conference Demos! (node.js + tensorflow.js)
The Coding Train
9.4: Genetic Algorithm: Looking at Code - The Nature of Code thumbnail
9.4: Genetic Algorithm: Looking at Code - The Nature of Code
The Coding Train
ITP/IMA Winter Show 2018 thumbnail
ITP/IMA Winter Show 2018
The Coding Train

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.