Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scalling with scale(1,0) does nothing. but scale(0,1) works #183

Closed
ReneTC opened this issue Jun 18, 2020 · 1 comment
Closed

Scalling with scale(1,0) does nothing. but scale(0,1) works #183

ReneTC opened this issue Jun 18, 2020 · 1 comment
Labels

Comments

@ReneTC
Copy link
Contributor

ReneTC commented Jun 18, 2020

Describe the bug
recently I wanted to squish a box flat. Let's try it.


from p5 import *

def setup():
        size(640, 360)

def draw():
    no_stroke()

    background(0)

    fill(255)
    #here i will put different scale values
    rect((0, 0), 200, 200)


if __name__ == '__main__':
  run()

I get a white box:
image

scaling with scale(0,1) flattens the box 100% in the x direction. Which makes perfect sense. But scaling with scale(1,0) does nothing. Box remains untouched.

Everything works perfectly with other values for y, say scale(1,0.5). It squishes the box 50%.

Expected behavior
y values should be smoshed to 0.

@ReneTC ReneTC changed the title Scalling with scale(1,0) does nothing. but scale(0,1) does Scalling with scale(1,0) does nothing. but scale(0,1) works Jun 18, 2020
hunterwilkins2 added a commit to hunterwilkins2/p5 that referenced this issue Aug 7, 2020
ziyaointl added a commit that referenced this issue Aug 7, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fixed issue #183
@ziyaointl
Copy link
Member

Resolved by #224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants