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 Story
How we grew from 0 to 3 million users
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

9.22: Custom Shapes - p5.js Tutorial

107.9K views
•
September 27, 2017
by
The Coding Train
YouTube video player
9.22: Custom Shapes - p5.js Tutorial

TL;DR

This video tutorial explains how to create custom shapes using vertices and curves in p5.js.

Transcript

hello this is a video tutorial about custom shapes and I am showing you on this webpage a much better explanation of how custom shapes that I will give you this is actually rune Matson's online book called programming design systems I think I might have referenced this before it's got an excellent chapter on color at rune mats and on twitter rune i... Read More

Key Insights

  • 💠 Custom shapes in p5.js offer a way to create more unique and complex shapes beyond the standard primitive shapes.
  • 🛃 Custom shapes can be defined by a collection of vertices using the beginShape() and endShape() functions.
  • 😥 Curves in custom shapes require additional control points to define their entry and exit points.
  • 😥 By experimenting with different vertices and control points, a wide range of custom shapes can be created.
  • 🛃 Custom shapes can be used to create interactive animations and dynamic patterns.
  • 🛃 The Catmull-Rom spline algorithm is used in p5.js to calculate curves between vertices in a custom shape.
  • 🛃 Custom shapes can be filled, stroked, or used as paths in p5.js.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What are custom shapes in p5.js?

Custom shapes in p5.js refer to shapes that are defined by a collection of vertices, allowing for more flexibility in creating unique shapes beyond the standard primitive shapes.

Q: How can custom shapes be created in p5.js?

Custom shapes can be created in p5.js by using the beginShape() function to start defining a shape and the endShape() function to close the shape. The vertices of the shape are specified using the vertex() function.

Q: What is the difference between polygons and curves in custom shapes?

Polygons are shapes with straight sides and can be created using the quad() or triangle() functions in p5.js. Curves, on the other hand, can be created using the curveVertex() function and allow for more smooth and rounded shapes.

Q: Why is it important to control the entry and exit points of curves in custom shapes?

Controlling the entry and exit points of curves is important in order to define how the curve flows between vertices. Without proper control points, the curve may appear distorted or unpredictable.

Summary & Key Takeaways

  • The video introduces the concept of custom shapes and explains how they can be defined by their vertices.

  • Custom shapes can be created using the beginShape() and endShape() functions in p5.js.

  • The video demonstrates how to create polygons and curves using custom shapes, and explains the importance of controlling the entry and exit points of curves.


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 📚

Text Generation using Spell with Nabil Hassein thumbnail
Text Generation using Spell with Nabil Hassein
The Coding Train
ITP/IMA Winter Show 2019 thumbnail
ITP/IMA Winter Show 2019
The Coding Train
Coding Challenge #116: Lissajous Curve Table thumbnail
Coding Challenge #116: Lissajous Curve Table
The Coding Train
How to Create Fractal Patterns with Toothpicks thumbnail
How to Create Fractal Patterns with Toothpicks
The Coding Train
Classifying Poses with ml5.js Part 2 thumbnail
Classifying Poses with ml5.js Part 2
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

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
  • Open Graph Checker

Company

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

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.