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

Add clamp and scale blocks to Math #981

Merged
merged 4 commits into from
Nov 6, 2023

Conversation

DNin01
Copy link
Collaborator

@DNin01 DNin01 commented Aug 29, 2023

Resolves #888

  • Clamp restricts the outputted number between a certain range. This block was copied from the unlisted Math and String extension. Its new home in the listed Math extension is much more accessible.
  • Map (scale) maps a number to a range and then scales that range to a second range.

@DNin01
Copy link
Collaborator Author

DNin01 commented Aug 29, 2023

@True-Fantom Your extension is being modified.

Copy link
Contributor

@NexusKitten NexusKitten left a comment

Choose a reason for hiding this comment

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

You may need to update this PR if #873 goes through before this.

extensions/true-fantom/math.js Outdated Show resolved Hide resolved
@GarboMuffin GarboMuffin merged commit 9adb4ac into TurboWarp:master Nov 6, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Map (scale) numbers
3 participants