Skip to content

Conversation

@riknoll
Copy link
Member

@riknoll riknoll commented Oct 11, 2023

Adds a helper method for using the blit function with icons.

Icons in arcade are 1 bit per pixel, so they don't contain any color information. Our other icon methods take a color argument to use for the non-transparent pixels; this simply adds a copy of blit that passes such an argument.

I need this for my fancy-text extension (or, rather, for my mini-menu extension which I am converting to use the fancy-text extension).

Copy link
Contributor

@eanders-ms eanders-ms left a comment

Choose a reason for hiding this comment

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

LGTM! Conditionals in the inner loop aren't ideal, but something we can optimize later if the need arises.

Copy link
Member

@jwunderl jwunderl left a comment

Choose a reason for hiding this comment

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

LGTM, as eric said bit of a hotpath so maybe worth quick hardware tests to double check but can defer that till later too

@abchatra
Copy link
Collaborator

@riknoll ?

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.

5 participants