Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Oct 22, 2024

So I made a discovery that If you use DrawPoint for DrawFilledRectangle, it enables you to use a System.Drawing.Color with an alpha value less than 255. Thought I might share it.

Copy link
Contributor

@9xbt 9xbt left a comment

Choose a reason for hiding this comment

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

For the love of god, make DrawLine support colors with the alpha channel instead of using DrawPoint

Copy link
Member

@MishaProductions MishaProductions left a comment

Choose a reason for hiding this comment

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

These changes will probably make the function significantly slower.

@TheVogels
Copy link

These changes will probably make the function significantly slower.

I think it should mix colors if alpha != byte.MaxValue and don't draw if alpha == byte.MinValue.

@ghost
Copy link
Author

ghost commented Nov 1, 2024

For the love of god, make DrawLine support colors with the alpha channel instead of using DrawPoint

working on it

@ghost
Copy link
Author

ghost commented Nov 1, 2024

this may sound dumb but i give up lol
cosmos just won't give me any more FPS

@ghost ghost closed this Nov 1, 2024
This pull request was closed.
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