Skip to content

Canvas becomes strange when using translate() and filter function in 2D mode #6502

@inaridarkfox4231

Description

@inaridarkfox4231

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.8.0

Web browser and version

Chrome

Operating System

Windows11

Steps to reproduce this

Steps:

  1. createCanvas(600, 600); background(255); noStroke(); fill(0); translate(300, 300); circle(0, 0, 300);
  2. and then, apply filter(BLUR, 5);
  3. become looks strange.

Snippet:

function setup() {
  createCanvas(600, 600);
  background(255);
  noStroke();
  fill(0);
  translate(300, 300);
  circle(0, 0, 300);
  filter(BLUR, 5);
}

2D_BLUR_BUG

version 1.7.0

BLUR_170

version 1.8.0

BLUR_180

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