capy-ui / capy

💻Build one codebase and get native UI on Windows, Linux and Web
https://capy-ui.org
Mozilla Public License 2.0
1.6k stars 60 forks source link

Added the fromARGB and the fromRGB methods. #52

Closed MSeiler-png closed 1 year ago

MSeiler-png commented 1 year ago

These methods may sound trivial, yet they can be useful for beginners which depend on a lsp for discovering the api. They typically search for creation methods and may not directly look at the fields.

zenith391 commented 1 year ago

This is a good idea, I didn't consider discoverability with LSP

Traxar commented 1 year ago

The functions shadow variable names (->compile error) and there is a mistake with the position of the alpha parameter in the fromRGB-function. Please consider #55 to fix this.