Skip to content

WebGL Primitives with Alpha Affected by Dark/Light Theme #2006

@stungeye

Description

@stungeye

Discovered with my students that the editor's theme (Dark vs Light) will change the colour of 3D primitives when the fill includes an alpha transparency. Is this the expected behaviour?

Details about the bug:

  • p5.js version: v1.4.0 (via the p5.js Web Editor)
  • Web browser and version: Firefox 98.0.2 / Chrome 100.0.4896.60
  • Operating System: Windows 10
  • Steps to reproduce this:
    • Open and run this sketch.
    • Click the editor's settings button (gear).
    • Toggle mode between Light and Dark theme.

Sketch output when using Dark mode:

Sketch output when using Light mode:

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