Skip to content

shadowBlur overlays on top of fill #4619

@micuat

Description

@micuat

Most appropriate sub-area of p5.js?

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

Details about the bug:

  • p5.js version: 1.0.0
  • Web browser and version: firefox 77.0.1 / chrome 83.0.4103.97 (Official Build) (64-bit)
  • Operating System: windows 10
  • Steps to reproduce this:

https://editor.p5js.org/micuat/sketches/R7YwWXnJU

The shadow of the stroke goes on top of the filled surface.

Actually, the problem is here
https://github.com/processing/p5.js/blob/main/src/core/p5.Renderer2D.js#L524-L529

When I reverse the order of fill and stroke like in this sketch, this problem goes away
https://editor.p5js.org/micuat/sketches/2I_nsQDEN

If reversing the order doesn't affect anything, then I will make a PR

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions