Skip to content

Adding GetColor, DrawRectangle, DrawText and GetTextBounds #534

Merged
gen2brain merged 1 commit intogen2brain:masterfrom
brunoluizkatz-NETZSCH:dev
Jan 12, 2026
Merged

Adding GetColor, DrawRectangle, DrawText and GetTextBounds #534
gen2brain merged 1 commit intogen2brain:masterfrom
brunoluizkatz-NETZSCH:dev

Conversation

@brunoluizkatz-NETZSCH
Copy link
Contributor

No description provided.

@brunoluizkatz-NETZSCH brunoluizkatz-NETZSCH changed the title Adding new functions Adding GetColor, DrawRectangle, DrawText and GetTextBounds Jan 11, 2026
@gen2brain gen2brain merged commit eddf369 into gen2brain:master Jan 12, 2026
10 checks passed
@gethiox
Copy link
Contributor

gethiox commented Jan 14, 2026

there already was AsColor method available on PropertyValue, GetColor could be just:

func GetColor(control ControlID, property PropertyID) rl.Color {
	return GetStyle(control, property).AsColor() 👀 
}

So sad I've missed this PR!
Not worth updating it right away tho, but still a thing to keep in mind for future updates to avoid code duplication.

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.

3 participants