Skip to content

noSmooth() not working on FX2D #3

Open
@StefanH-AT

Description

@StefanH-AT

Description

noSmooth() does not disable image smoothing in FX2D

Expected Behavior

Expected to disable antialiasing on images

Current Behavior

Antialiasing is still enabled

Steps to Reproduce

  1. Make sketch using FX2D
  2. Add noSmooth() to settings()
  3. Draw image()
@Override
	public void settings() {
		size(500, 500, FX2D); 
		noSmooth();  // Switching these around does not change anything.
	}
	
	@Override
	public void setup() {
                  // Putting noSmooth() here does not solve it either
	}
	
	@Override
	public void draw() {
		background(0);
		drawGrid();
		image(textures.get(Editor.currentTexture), x, y, x + 200, y + 200); // Image is 16 x 16
	}

Your Environment

  • Processing >3.4
  • Windows 10
  • Other information:

Possible Causes / Solutions

The FX2D rendering engine breaks noSmooth(). I'm hoping for a fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedMany hands make light work. Please help!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions