Sign in to follow this  
Followers 0
pleska

Gradient Effect Plug-In

63 posts in this topic

Well its not spectacular but it gets the job done. This plug-in produces a gradient fill between your current primary and secondary colors. It uses the overall selected rectangle as the distance for the gradient fills. It supports 5 basic types of gradient fills: Vertical, Horizontal, Radial (from center of rect out), Diagonal and Reverse-Diagonal. If you want the fill to go the other way you reverse the colors.

Also it has a special ability to use a mask color. This color will be the only area where the gradient fill will occur within the selected region. I did this after running into lots of math problems with wierd regions, if you want to see the wierd region problems create a very irrigular selection and try some of the fills.

Attached is the link to a zip file. Unzip it and put the single DLL that is inside this zip file in your effects folder and then launch the paint.net app. It should appear on your effects menu as a new effect.

btw. This was built with paint.net v2.63 and if you want source let me know here.

Thanks,

Paul

 

MODERATORS NOTE:  This effect is incompatible with Paint.NET 4.0x

http://www.sapphireonline.com/Downloads/GradientPlugIn.zip

0

Share this post


Link to post
Share on other sites

Nice! Works well from what I've been able to tell so far. I did notice the odd behavior you mentioned with strange selection shapes, but the result was actually rather interesting.

Thanks!

Dan

0

Share this post


Link to post
Share on other sites

Please just invert the Cancel & Ok buttons.

However: a must-have!

0

Share this post


Link to post
Share on other sites

This is a very good plug-in.

It is somewhat similar to the gradients that can be produced by the Gimp.

I concur that the "OK" and "Cancel" dialog boxes should be moved.

5 stars.

0

Share this post


Link to post
Share on other sites

Thanks all for the feedback. I updated the zip file with a new DLL that has the OK and cancel button positions changed. I also gave them their correct enter/escape status on the form.

Enjoy

:) Paul

0

Share this post


Link to post
Share on other sites

really cool!!!

a user defined angle would be splendid however it is awesome how it is.

0

Share this post


Link to post
Share on other sites

Finally...

This is why I love mathematics. It applies!

Also, in the spirit of open source freeware, could you release the source code?

0

Share this post


Link to post
Share on other sites

At the end of the last line of his post:

btw. This was built with paint.net v2.63 and if you want source let me know here.

Since two persons have expressed an intrest in the source, he'll probably provide the information next time he's on. :)

0

Share this post


Link to post
Share on other sites
btw. This was built with paint.net v2.63

Where is this in 2.63? I didn't see the effect till I downloaded the dll.

0

Share this post


Link to post
Share on other sites

This plugin is not standard aviable in Paint.NET, you have to download it yourself and install to use it.

0

Share this post


Link to post
Share on other sites

Yeah crosswalker, I believe that by that he meant it was built to work under the PDN 2.63 structure.

And just so you know, pleska, your gradient effect plug in will be featured in an upcoming video tutorial I'll be making to supplement my existing glass orbs tutorial! :D

0

Share this post


Link to post
Share on other sites

Is anyone else having trouble doing Radial gradients? All the other gradients seem to work fine for me, but for some reason Radial just doesn't want to.

0

Share this post


Link to post
Share on other sites

I'm really not sure what the deal is with Radial. I guess I'd expect the center of the gradient to be in the center of the selection, but it never seems to end up in the same place...

0

Share this post


Link to post
Share on other sites

That's odd, I think I'm doing something wrong then because I get no effect at all. Like, the entire circle does a fill with my primary color and the secondary is nowhere.

Oh well, still nice to have the other gradients!

0

Share this post


Link to post
Share on other sites

It depends on where the selection is, I think.

I did a small rectangle in the upper-left of the image, and I got a radial gradient, but the center was down low in the selection, cutting of the bottom part of the fade. Then I did a large rectangular selection more in the middle of the image, and the center of the gradient was somewhere off the right side of the canvas, as the fade only caught a bit of the lower right corner.

I don't know. It'd be a plus to figure out what's going on, but I just love the plug-in so much for vertical gradients, I can't fault it. :)

One thing I did notice though, pleska:

You have Diagonal and Reverse Diagonal fades in your drop-down. The Diagonal fades from Foreground to Background from the top-left to the bottom-right [\]. Reverse Diagonal fades from Background to Foreground along the same line.

Since this effect can be achieved by switching the Foreground and Background colors around, would it be possible to make the Reverse Diagonal option make the fade from lower-left to upper-right [/]? Right now there is no way to do this other than reversing the layer.

Anyway, that's enough of my nit-picking for one day. :D

0

Share this post


Link to post
Share on other sites

Hi all,

Glad you like the gradient plug in. When I get back from vacation in a week I will look at adding the up-slope gradients in addition to the two that currently are in there. I really just ran out of time. Also, yes, I did mean to indicate that I built it against that version of Paint.Net. Wasn't sure how backwards compatible the plug-in model was so I thought I would mention it.

Regarding gradients, the plug-in basically looks at the rectangle that encloses the selection, or the entire image if no selection is available. It then uses that rectangle for the basis (i.e. the start, end and increment of color to use across that rectangle). In the case of the radial gradient, which I might have messed up, I divide that rectangle by 2 and start going out from there, going from the primary color to the secondary color. If you have masking turned on make sure your selection rectangle is centered over the general area you want to make your gradient in. Either way, I will look to see if I messed up something in that fill when i add the other two fills in the plug-in in a week or so.

Btw. I love this Paint.NET program, I keep thinking of new ideas to add to it.

Thanks,

:) Paul Leska

0

Share this post


Link to post
Share on other sites

Hi all quick note. I just updated the Zip file on the server and fixed the radial gradient, it was way messed up. In a week I will get back and hopefully can add the other directions. Just get the new zip and replace the DLL in the zip with the bad one already in your effects directory and relaunch PDN.

http://www.sapphireonline.com/Downloads/GradientPlugIn.zip

Thanks for finding the bug.

Paul

0

Share this post


Link to post
Share on other sites

The Radial Gradient is working beautifully now, thanks for fixing it so quickly! Much appreciated!

0

Share this post


Link to post
Share on other sites

hey, might I suggest a transparency gradient option? I think that would be a fantastic contribution to paint.net. I have been trying to find a methodology of creating one but I didnt manage to do it.

0

Share this post


Link to post
Share on other sites

What do you mean by transparency gradient?

I use the plug-in to do the shine on my orbs, and it works just fine. I set the Primary color to white with alpha of 255, and the Secondary color to white with an alpha of 100. The gradient fades from white to translucent white just like it should.

Unless I'm not understanding what you're looking for, that should solve your problem! :)

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0