Skip to content

1.x Compatibility Addon #7230

Closed
Closed
@davepagurek

Description

@davepagurek

Increasing access

When we release p5 2.0, there will be some API changes. For ease of switching and for preservation purposes, we'd like to make an addon that re-introduces the old APIs so old sketches can continue to run.

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)

Feature request details

Here's a running list of things we'll need to include:

  • Handle preload and make it run before setup
    • Make load* methods like loadImage immediately return an object instead of a promise
  • Add back 1.x shape drawing API
  • Add some color internals that are semi-commonly relied upon
    • color.levels: an array of RGB values in [0, 255]
    • color._array: an array of RGB values in [0, 1]
  • Make cameras auto-set themselves as the default camera on creation
  • Attach p5 constants to p5.Graphics

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Completed

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions