Skip to content

Vertex is now seemingly totally broken #3473

@trimad

Description

@trimad

Nature of issue?

  • Found a bug
  • Existing feature enhancement
  • New feature request

Most appropriate sub-area of p5.js?

  • Color
  • Core/Environment/Rendering
  • Data
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Other (specify if possible)

Which platform were you using when you encountered this?

  • Mobile/Tablet (touch devices)
  • Desktop/Laptop
  • Others (specify if possible)

Details about the bug:

  • p5.js version: 0.7.3
  • Web browser and version: Google Chrome 71.0.3578.98 and Firefox Developer 66.0b1
  • Operating System: Windows 10
  • Steps to reproduce this:
function setup() {
  createCanvas(800, 800, WEBGL);
}

function draw() {
  background(51);
  beginShape(LINES);
  vertex(30, 20, 0);
  vertex(85, 20, 0);
  vertex(85, 75, 0);
  vertex(30, 75, 0);
  endShape();
}

When I run this snippet of code in the p5.js web editor, it works as intended. When I run it locally in Chrome or in Firefox, my console is flooded with errors. In fact I can't get vertex to work at all in either Chrome or Firefox now. See screenshots.

Firefox
vertex-firefox
p5.js web editor
vertex-editor
Google Chrome
vertex-chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions