You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! It's a reasonable idea. There's already a getcolor() function, a gethue() function would be easy to add.
In general there's an inconsistency in the APl: the interface style of set...(nothing) to do the equivalent get...() is sometimes available and sometimes not. For example, there's a getline() to match setline(), but a setstrokescale(nothing) rather than a getstrokescale(). There's no setantialias(nothing) or setlinecap(nothing). And sometimes there aren't available hooks to get the information that you can set (getopacity()). So I think the interface will continue to be inconsistent even with these additions ... :)
Please update sethue() amd setcolor() to accept Nothing arguement to return the current values of color and alpha
and make two new functions
you can also add this
The text was updated successfully, but these errors were encountered: