Skip to content

Document parameters of p5.Color constructor #6006

Closed
@Pomax

Description

@Pomax

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
  • Internalization
  • Friendly Errors
  • Other (specify if possible)

p5.js version

1.5.0 (cloudflare CDN)

Web browser and version

all of them

Operating System

n/a

Steps to reproduce this

Steps:

<!DOCTYPE html>

<html lang="en">
<head>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.5.0/p5.js"></script>
</head>
<body>
  <script>
    p5.Color(0)
  </script>
</body>
</html>

Yields the following error:

Uncaught TypeError: this._storeModeAndMaxes is not a function
    Color https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.5.0/p5.js:53391
    <anonymous> http://localhost:8000/index.html:9
[p5.js:53391:16](https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.5.0/p5.js)
    Color https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.5.0/p5.js:53391
    <anonymous> http://localhost:8000/index.html:9

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions