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

new text api with measurement function #34

Merged
merged 2 commits into from
Oct 21, 2021
Merged

new text api with measurement function #34

merged 2 commits into from
Oct 21, 2021

Conversation

lowfatcode
Copy link
Member

No description provided.

* Add colour support to text using \rgbXXX and \rgbaXXX
* Add measure() which gives width/height
* Update text() to support colour/wrapping

Co-authored-by: Jonathan Williamson <[email protected]>
Remove dead code and deprecated bindings to keep things tidy.

Overhaul all state functions: pen, alpha, clip, blend, spritesheet, target, cursor, camera.

These now reset to default state when called with no args.

Removed:
* tick
* _reset

These are replaced by "start" and "quit".

Added:
* flip() - flip the screen, can be used in REPL to see your experiments.
* w, h = measure("Text String") - measure text

Changed:
* text
@Gadgetoid Gadgetoid merged commit c4a2271 into main Oct 21, 2021
@Gadgetoid Gadgetoid deleted the text_improvements branch November 1, 2021 09:38
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.

2 participants