BoltBait Posted October 9, 2006 Share Posted October 9, 2006 Rick, Currently, when writing an effect, we have access to the RGB and A values for the current pixel and the primary/secondary colors, like this: CurrentPixel.R = (byte)PrimaryColor.R; CurrentPixel.G = (byte)PrimaryColor.G; CurrentPixel.B = (byte)PrimaryColor.B; CurrentPixel.A = (byte)PrimaryColor.A; Could we also have access to get/set the H, S, and V values of those objects? Or, as a workaround, is there a function I can call, within a codelab script, that will convert between RGB and HSV (both directions)? Thanks. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
Illnab1024 Posted October 9, 2006 Share Posted October 9, 2006 No, the HSV is calculated purely into the Color Dialog, and Isn't used anywhere else. And evanolds has some nice conversions in his conditional H/S effect source. Quote ~~ Link to comment Share on other sites More sharing options...
BoltBait Posted October 9, 2006 Author Share Posted October 9, 2006 Illnab1024, thanks for the email. (He sent me the conversion routines from the PdN source.) That should be enough to get me going. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
Rick Brewster Posted October 9, 2006 Share Posted October 9, 2006 What he said. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.