Comments (3)
You can use scribble_get_quad or scribble_get_bbox to get the bounds of a scribble element.
A higher-level way to get the dimensions would be nice, all you really need to do for that is get the left and bottom bounds of the array for width and height, though.
from scribble.
That's exactly what I was looking for, thank you! Closing this as my question was answered.
from scribble.
I can add width/height to the output array (/struct in the future?)
from scribble.
Related Issues (20)
- Proper "highlight" effect for regions HOT 1
- .seek() method for typists
- Multiple colors for text, like draw_text_colo(u)r? HOT 2
- Option for `.sound_per_char()` to cut off sound if one is already playing HOT 1
- Option to only scale down non-sprite glyphs with scale_to_box() and fit_to_box()
- Allow `[typistSoundPerChar,...]` to take an array as an argument, like the base function HOT 1
- Being able to ban/allow assets for Scribble
- Word splitting sometimes causes problems with bbox calculation
- [help]About the conflict between setting colors and #macro HOT 2
- ds_map_find_value argument 1 invalid reference to (ds_map) HOT 2
- There was an error whilst reading "sprite_font: spr_sprite_font" HOT 13
- being able to insert a character at the start of a new line HOT 1
- Arabic Text in HTML5 is malformed HOT 3
- Add optional argument such that MSDF font pxrange is scaled by scribble_font_scale() HOT 1
- Implement 4-corner gradients HOT 1
- Surface tag broken on GM 2023.11
- scribble_font_bake_outline_8dir crashes in 2023.11.1.160 runtime HOT 2
- how to draw background? HOT 1
- Scribble crashes my game! HOT 7
- Can't run the project with scribble, it returns compile errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scribble.