-
Posts
1,238 -
Joined
-
Last visited
-
Days Won
18
Everything posted by Reptillian
-
Sorry to ask, but where's the tabs tutorial? I really want to convert my G'MIC Stitch into a PDN plugin now that tabs are supported.
-
I would like to let you know that I had made a upgrade of a G'MIC filter named Transfer Color [Reduced Colors], and you can use some of the ideas found there into your plugin which is for reducing color.
-
That's possible by getting the existing color. In context of C#, and PDN, you can create a 3D array.
Something like this:
1. array_3d=[256,256,256] # This means a 3D array with dimension of 256,256,256
2. Loop by pixel by pixel within picture, and find the color. Use the current color as coordinate to increment at r,g,b of array_3D.
3. Create a list of colors
4. Loop by array in 3D array, and if the value in index r,g,b is greater than 0, append the rgb into list of color.
If you want more information, I would recommend you to start a thread on plugin developer.
For more advanced things like getting the closest match and specified color, you do have a start to there. It's just out of my league to do as what I did was existing commands within G'MIC to do the job rather than code it.