n d Posted August 14, 2010 Share Posted August 14, 2010 Paint net gradients are good. You can make them round, square, conical, linear... but what if you want, say, an elliptic gradient? A trapezoid gradient? A hexagonal gradient? Or a gradient in the shape of a christmas tree? All this can be done with Shaped Gradient 1.5 Version history version 1.5: fixed a bug with the center point selector. version 1.4: added center point control. You can now choose the center point of the gradient. version 1.2: added alpha control. You can now choose the alpha (transparency) for the edge & center colours separately. TO-DO list: - add anti-alias function - add center-point control - done - possibly: curve control for the gradient Samples of the effect: Enjoy! shapegradient.zip 1 Quote Link to comment Share on other sites More sharing options...
barkbark00 Posted August 15, 2010 Share Posted August 15, 2010 Great work! I think I'll be using this a lot! Quote Take responsibility for your own intelligence. 😉 -Rick Brewster Link to comment Share on other sites More sharing options...
chrisco97 Posted August 15, 2010 Share Posted August 15, 2010 Nice job with the plugin. Deserves a pin! Quote Link to comment Share on other sites More sharing options...
jerry533482 Posted August 15, 2010 Share Posted August 15, 2010 (edited) You, my friend, have earned my respect. anyway to make the gradient smoother, by chance? Edited August 15, 2010 by jerry533482 Quote Space...The Final Frontier. -James Tiberius Kirk; circa 2260s My gallery: Jerry's Paint.NET creations My tuts: sun galaxy rings My youtube: http://www.youtube.com/jerry533482 YLOD VICTIM Link to comment Share on other sites More sharing options...
n d Posted August 15, 2010 Author Share Posted August 15, 2010 Glad you all like it! You, my friend, have earned my respect. anyway to make the gradient smoother, by chance? I have tried to implement an anti-alias feature, but so far I haven't been able to figure out how to do it. Perhaps in a future update, when I have gained a bit more C# experience... As a workaround, you can do this: - duplicate layer - on the new layer, apply eigen blur with radius 1, RGB only - set the new layer opacity to somewhere around 180-230 - merge layers Quote Link to comment Share on other sites More sharing options...
n d Posted August 15, 2010 Author Share Posted August 15, 2010 Eh? What would it adjust? There's no static angle involved... The gradient goes towards the center of the selection, so the angle varies with each pixel... Quote Link to comment Share on other sites More sharing options...
jerry533482 Posted August 15, 2010 Share Posted August 15, 2010 Well, instead of evenly distributing color and alpha values, they could be unevenly controlled... Quote Space...The Final Frontier. -James Tiberius Kirk; circa 2260s My gallery: Jerry's Paint.NET creations My tuts: sun galaxy rings My youtube: http://www.youtube.com/jerry533482 YLOD VICTIM Link to comment Share on other sites More sharing options...
n d Posted August 15, 2010 Author Share Posted August 15, 2010 Hm, maybe.... will have to see if it slows the code too much. Quote Link to comment Share on other sites More sharing options...
Frontcannon Posted August 15, 2010 Share Posted August 15, 2010 Gives a really cool effect, but definitely misses an anti-alias option.. which gives me an idea! Which doesn't make sense now that I thought of it. Lightrays already does that Quote Night Vision Text Effect Tutorial Gallery reddit.com/r/futurebeats | My Mixcloud Link to comment Share on other sites More sharing options...
n d Posted August 15, 2010 Author Share Posted August 15, 2010 Anyway, as to not further derail the thread, here's a little update with alpha-adjustment added. It may or may not help with the aliasing problem somewhat, depending on the situation... Note that it will still overwrite anything on the layer you use it on, so if you set an alpha value to 0 it will make that part of your layer transparent. So always apply the effect on an empty layer. Shaped Gradient 1.2 NOTE: the dll name is now shapegradient.dll without the version number, so you need to delete the old .dll if you don't want two shapedgradients in your menu. Sorry for the inconvenience, but this was done to make further updates easier for me & you. I'm still learning this stuff, please don't crucify me for it. Quote Link to comment Share on other sites More sharing options...
Sarkut Posted August 15, 2010 Share Posted August 15, 2010 Thanks for the update. I think that the question re: adjustable angle might be restated as can there be an option to adjust the center point of the gradient effect instead of only the default center of the selection. Again, as a non-coder myself, I don't know what would be involved in this. I can make it happen through a work-around, but it's fairly laborious. Quote Link to comment Share on other sites More sharing options...
pyrochild Posted August 15, 2010 Share Posted August 15, 2010 YAY FOR DELETING STUPID POSTS OF A STUPID ARGUMENT THAT DOESN'T EVEN MAKE ANY STUPID SENSE IN THE FIRST PLACE. Seriously. What the hell. Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! Link to comment Share on other sites More sharing options...
n d Posted August 15, 2010 Author Share Posted August 15, 2010 (edited) Thanks for the update. I think that the question re: adjustable angle might be restated as can there be an option to adjust the center point of the gradient effect instead of only the default center of the selection. Again, as a non-coder myself, I don't know what would be involved in this. I can make it happen through a work-around, but it's fairly laborious. Oh, so it's about adjusting the center point? I am going to add that - hopefully to the next version - I even have most of the code for it, but it still has a few glitches I need to work out. I'm not going to do it with an angle control though - I was thinking more on the lines of X,Y vector controls. ps - thanks for cleaning the thread pyro Edited August 15, 2010 by n d Quote Link to comment Share on other sites More sharing options...
n d Posted August 16, 2010 Author Share Posted August 16, 2010 (edited) v1.3 beta: http://www.fileden.c...gradient1_3.zip This has a functional center point selector, but the effect runs a bit slow now. So if you have a really slow computer and don't need the center-selection feature, stick to the previous version until I manage to optimize the code somehow. For this reason I'm keeping the previous version at the top post for now. Edited August 16, 2010 by n d Quote Link to comment Share on other sites More sharing options...
sokagirl Posted August 21, 2010 Share Posted August 21, 2010 Thank you for creating this wonderful plug in .. This is what I came up with Quote Link to comment Share on other sites More sharing options...
n d Posted August 21, 2010 Author Share Posted August 21, 2010 Thank you for creating this wonderful plug in .. This is what I came up with Wow, that looks nice. And thanks. Also, just to let everyone know, I've been a bit busy with other things, but I'm working on rewriting the code of v1.3 and I have some ideas how to make it faster... I also have a few ideas I'm going to try that could be used to implement an anti-alias function. Stay tuned... Quote Link to comment Share on other sites More sharing options...
n d Posted August 21, 2010 Author Share Posted August 21, 2010 Ok I updated the first post with version 1.4. It's the same as 1.3 but it should be at least marginally faster. I will continue to optimize the code as I get better at coding C#. Still haven't been able to tackle the anti-alias issue, sorry for that. I'll keep working on it. Quote Link to comment Share on other sites More sharing options...
Cookies Posted August 21, 2010 Share Posted August 21, 2010 (edited) Got a little bug when i tried the new version Screenshot of it Edit: the centerpoint isn't centered when the double vector is 0.0, 0.0 Edited August 21, 2010 by Cookies Quote Link to comment Share on other sites More sharing options...
Sarkut Posted August 21, 2010 Share Posted August 21, 2010 That happened with v1.3 once, but hasn't repeated yet. Quote Link to comment Share on other sites More sharing options...
n d Posted August 21, 2010 Author Share Posted August 21, 2010 Odd. Are you sure you didn't have any stray pixels selected? Because the double vector is apparently relative to the selection, ie. 0,0 = center of the selection. Quote Link to comment Share on other sites More sharing options...
Sarkut Posted August 21, 2010 Share Posted August 21, 2010 I can't be sure. If it shows up again, I'll pay more attention. Quote Link to comment Share on other sites More sharing options...
Cookies Posted August 21, 2010 Share Posted August 21, 2010 (edited) I think this tells something http://img839.imageshack.us/img839/2877/screenshot37m.jpg and this http://img299.imageshack.us/img299/4425/screenshot38t.jpg says it doesn't work properly Edit: if the selection is at the top-left corner it seems to work fine Edited August 21, 2010 by Cookies Quote Link to comment Share on other sites More sharing options...
n d Posted August 22, 2010 Author Share Posted August 22, 2010 Hm, I'll look into it ASAP. Quote Link to comment Share on other sites More sharing options...
n d Posted August 22, 2010 Author Share Posted August 22, 2010 Ah, it was a simple thing after all. I forgot to add the offset of the selection to the centerpoint calculation. The center point selection now works as it should, ie. 0,0 = center of the selection. The coordinates are still relative to the selection, if you need the center point to be outside the selection you'll need to select a few pixels in the corners to give a larger selection. If this is a problem to anyone, let me know and I'll try to find out how to acquire the canvas size to a plugin... Anywho, Version 1.5 Quote Link to comment Share on other sites More sharing options...
Cookies Posted August 22, 2010 Share Posted August 22, 2010 Doesn't seem to be any problems now Quote 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.