Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Scale and Margins Calculations Tool

An asset by ParLaBas
The page banner background of a mountain and forest
Scale and Margins Calculations Tool hero image

Quick Information

0 ratings
Scale and Margins Calculations Tool icon image
ParLaBas
Scale and Margins Calculations Tool

A Basic Scale and Margin calculations tool for Godot.1) Scale tool:* "How much to scale by": Calculates the target scale based on original dimensions and the target minimum (or maximum) size in pixels for either width or height* "What are the new dimensions of the sprite once scaled": Calculates the dimensions based on a given scale2) Margin tool:* "Where to put the item based on margins": Calculates where the (center of) the sprite should be, based on the margins/distance to a defined reference position and direction(I put those two tools together because I personally need to use both at the same time for my own game).

Supported Engine Version
4.6
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
1 month ago
Git URL
Issue URL

A Basic Scale and Margin calculations tool for Godot.

1) Scale tool:
* "How much to scale by": Calculates the target scale based on original dimensions and the target minimum (or maximum) size in pixels for either width or height
* "What are the new dimensions of the sprite once scaled": Calculates the dimensions based on a given scale
2) Margin tool:
* "Where to put the item based on margins": Calculates where the (center of) the sprite should be, based on the margins/distance to a defined reference position and direction

(I put those two tools together because I personally need to use both at the same time for my own game).

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Scale and Margins Calculations Tool icon image
ParLaBas
Scale and Margins Calculations Tool

A Basic Scale and Margin calculations tool for Godot.1) Scale tool:* "How much to scale by": Calculates the target scale based on original dimensions and the target minimum (or maximum) size in pixels for either width or height* "What are the new dimensions of the sprite once scaled": Calculates the dimensions based on a given scale2) Margin tool:* "Where to put the item based on margins": Calculates where the (center of) the sprite should be, based on the margins/distance to a defined reference position and direction(I put those two tools together because I personally need to use both at the same time for my own game).

Supported Engine Version
4.6
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
1 month ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers