Window resize stretches canvas instead of resizing sketch surface · Issue #127 · processing/libprocessing · GitHub
Skip to content

Window resize stretches canvas instead of resizing sketch surface #127

Description

@SableRaf

When the libprocessing / mewnala window is resized, the drawing appears to be stretched to fit the new window dimensions.

Processing (Java)

void setup() {
  size(400, 400, P3D);
  windowResizable(true);
}

void draw() {
  background(255, 0, 0);
  ellipse(width/2, height/2, 100, 50);  
}

libprocessing / mewnala

from mewnala import *

def setup():
    size(400, 400)

def draw():
    background(255, 0, 0)
    ellipse(width/2, height/2, 100, 50)

run()

Expected behavior

After resizing the window, the canvas should adapt and update width and height correctly.

Actual behavior

In libprocessing / mewnala, resizing the window appears to stretch the rendered output instead of updating the drawing surface properly.

Screenshot

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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