- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3.6k
Open
Description
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