Skip to content

[p5.js 2.0 Bug Report]: New vertex functions missing in p5.Graphics objects #7755

@bojidar-bg

Description

@bojidar-bg

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

p5.js version

2.0.0

Web browser and version

Firefox 137.0.2 / archlinux

Operating system

Arch Linux 2024-04-18

Steps to reproduce this

Steps:

  1. Create a p5.Graphics object
  2. Try using one of the new vertex functions, e.g. splineVertex on it.
  3. Get an error about that function missing.
  4. (workaround) Call that function anyway using ._renderer.splineVertex

Snippet:

Reproduction project

function setup() {
  createCanvas(100, 100)
  let g = createGraphics(width, height)
  g.beginShape()
  g.splineVertex(10, 10)
  g.splineVertex(20, 10)
  g.splineVertex(20, 20)
  g.endShape()
  image(g, 0, 0) // #7579
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Completed

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions