Skip to content

Tweak scalingVector to make dots appear to be more circular #423

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

Merged
merged 1 commit into from
May 28, 2019

Conversation

ktbee
Copy link
Contributor

@ktbee ktbee commented Mar 18, 2019

Resolves

scratchfoundation/scratch-gui#4313

Proposed Changes

Tweak the alias ratios for the scalingVector

Reason for Changes

These changes to the scalingVector helps make circles a little wider. Currently they are a little taller than they are wide, which makes them look like vertical ovals. This change to make the Y scalingVector smaller helps balances the circle dimensions.

Screenshots

I took some screen shots to try to capture how these changes affect circles. I recommend clicking the screenshot to fullscreen it and see more detail.

PR changes Production
Project Link https://scratch.mit.edu/projects/245159517/fullscreen/
Screen Shot 2019-03-18 at 10 43 39 AM Screen Shot 2019-03-18 at 10 44 31 AM
Project Link https://scratch.mit.edu/projects/220220160/fullscreen/
Screen Shot 2019-03-18 at 10 56 31 AM Screen Shot 2019-03-18 at 10 56 10 AM
Project Link https://scratch.mit.edu/projects/89811578/fullscreen/
Screen Shot 2019-03-18 at 11 02 10 AM Screen Shot 2019-03-18 at 11 02 39 AM

@thisandagain
Copy link
Contributor

/cc @seotts

@thisandagain
Copy link
Contributor

/cc @kchadha

@thisandagain thisandagain added this to the March 2019 milestone Mar 18, 2019
@ktbee ktbee changed the title Tweak scalingVector to make dots appear to be more circular instead o… Tweak scalingVector to make dots appear to be more circular Mar 19, 2019
Copy link
Contributor

@cwillisf cwillisf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

I'd prefer some comments to explain where these numbers come from, or even better some constants with self-documenting names. Is that feasible, or was this just a matter of picking values that look good?

@ktbee
Copy link
Contributor Author

ktbee commented May 13, 2019

@cwillisf good point! These numbers were just a matter of picking what looked good/better, but I can add a comment explaining that since they do seem mysteriously specific.

@ktbee ktbee force-pushed the more-circular-pen-dots branch from b104b5a to 2042018 Compare May 13, 2019 17:25
@ktbee ktbee force-pushed the more-circular-pen-dots branch from 2042018 to 9fc82a8 Compare May 13, 2019 17:27
@ktbee
Copy link
Contributor Author

ktbee commented May 13, 2019

@cwillisf I added a comment to explain the rationale behind the different alias numbers. Let me know if it clarifies things enough!

@cwillisf
Copy link
Contributor

Sorry for the delay! If there were some math-based reason for the numbers then I would ask for that math to be explained, but since it's just eyeballed I think your comments are fine. Thanks!

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

Successfully merging this pull request may close these issues.

3 participants