You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
The text was updated successfully, but these errors were encountered:
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
Describe the bug
recently I wanted to squish a box flat. Let's try it.
I get a white box:

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.
The text was updated successfully, but these errors were encountered: