Jump to content
How to Install Plugins ×

Light Rays (update YMD:170928)


MadJik

Recommended Posts

Light rays Effect Plugin

 

lightrays1.png

 

What's this?

This is a Render Texture Effect plugin.

NB: Moved from Render (too crowded) to Texture submenu.

 

Starting from the center (that you could offset) it will draw alternated triangles as rays.

 

It uses the Primary and Secondary colors as default and could be multi-colors from the current palette of colors. Up to you to store your palettes and load your favorite before running this effect.

Light_Rays_Palette.jpg

 

The brush width is used to draw the empty triangles (uncheck “Fill the rays”).

 

 

Download it!

Plugin LightRays.dll

ar.pngHere is the DLLal.png

 

The MadJik's All plugins package is available !

http://forums.getpaint.net/index.php?showtopic=7186

 

How to install

Close Paint.net

 

Classic version of Paint.net

Unzip and (re)place the DLL in your Effect folder usually: C:/Program Files/Paint.NET/Effects

 

Microsoft Store version of Paint.net

Unzip and (re)place the DLL in your Effect folder usually: /My Documents/paint.net App Files/Effects/

You have to adapt for your language My Documents

 

 

The User interface

This plugin is added to the menu Effects, submenu Texture (was previously in Render).

Light_Rays_UI.png

 

Quantity of rays

It works well in the range 4 to 200. Less than 4 give nothing or strange triangles. More than 500 gives strange figures and requires CPU... Even number is better for symmetry than odd number. Also for symmetry with colors from palette try to use multiple of the quantity of colors.

 

Colors from palette: Number / Start

:Warning: It works only with the current palette of colors!

Number:

0 to use primary and secondary colors.

1-96 to load the colors from the current palette. Each colors are repeated around the circle till it is filled.

Start:

From the standard palette (black, dark grey, red, orange, yellow, etc.) you could choose to skip black and dark grey, set the value to 3 to start by red color.

The color index is modulo 96 (number of colors in a palette).

 

Center position offset X / Y (in %)

Negative value to move left/up, positive to move right/down.

100% is the width/height of the image, 0% is at the center, 50% is on the edge of the image.

Radius External / Internal

Allows you to reduce/increase the length of the ray. It's in %, not in pixel.

Allows you to reduce/increase the center point/circle. You could obtain a ring instead a circle.

 

Rotation Angle / Ratio of the rays

Rotation:

Allows you to choose different angle for the whole result.

Ratio:

Allows you to change the ratio of the rays to have one thick one thin and so on.

 

Use random

Check it to allow some chaos based on the random factor.

 

Random factor

This factor is here to set the strength of the randomness. 0 is no random effect.

The impact is on the external/internal radius of each ray.

 

Reseed (0=auto)

If not 0 set the random generator to this fix value. It means the result won’t change while you are playing with the other setting.

If set to 0, every change will produce different random result.

 

Fill the rays

Check/Uncheck to choose as you like, filled or empty triangles. The lines are drawn with the actual brush width.

 

Fill with color gradients

The rays are filled with a gradient from primary color to secondary color. With colors from the palette, the gradient use actual color and previous color from the palette.

If Offset secondary color is checked then the gradient uses the actual color and the color below from the palette (on the standard black on the first row will be used with white on the row below).

 

Radius of gradient

The gradient is based on the extreme limits of the triangle but here you could change the limits to make a repeatable gradient.

 

Swap the gradients

Invert the direction for the gradients.

 

Draw the gradient as ray

As it says! Check the box you will understand.

 

Offset secondary color

If Offset secondary color is checked then the gradient uses the actual color and the color below from the palette (on the standard black on the first row will be used with white on the row below).

 

Use anti-aliasing

Check/Uncheck to choose as you like.

 

 

The Examples:

 

 

 exemple0.png

 

exemple1.png

exemple2.png

 

 

Voilà! Enjoy!

 

Let me see what you could do with it!

 

  • Like 1
  • Upvote 1
Link to comment
Share on other sites

Excellent Madjik! I used to do this by using Interlace at full strength and then a rect to polar! :D

Don't worry about anti-aliasing...a quick zoom blur deluxe should clear that up.

Link to comment
Share on other sites

Oooooh very nice MadJik! Yousa gonna be sharin' da source? Mesa curious!

xZYt6wl.png

ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Link to comment
Share on other sites

Oooooh very nice MadJik! Yousa gonna be sharin' da source? Mesa curious!

Well, no, NOW he's not...Jar Jar...

In other news, I LOVE this plugin. MadJik is my new favorite person.

EDIT: It's a plugin, not a tut.

 

The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.
Amy: But how did it end up in there?
The Doctor: You know fairy tales. A good wizard tricked it.
River Song: I hate good wizards in fairy tales; they always turn out to be him.

Link to comment
Share on other sites

The good thing with % is there are infinite.

If you make a 10000*10000 canvas, 50% still works, you're not limited to 600px.

M2c.

No. Way. I've just seen Bob. And... *poof!*—just like that—he disappears into the mist again. ~Helio

Link to comment
Share on other sites

The good thing with % is there are infinite.

If you make a 10000*10000 canvas, 50% still works, you're not limited to 600px.

M2c.

Note for myself : Future version should change the sliders mini/maxi depending on the picture size

The error margin is greater then... 1% of 10000 is how many pixels?

Link to comment
Share on other sites

Madjik

Just wanted to say I love this plugin; great for backgrounds; nice job.

One small point, though, regarding the "Number of rays in the circle" slider (and this is not a criticism, just an observation).

You cannot render an odd number of rays, yet your slider/arrows and the text entry box allow for selection/entry of odd numbers.

Would there be any way you could get the slider/arrows to go up/down in increments of two?

Maybe I am being a bit picky! Probably just jealousy as I'd love to be able to write plugins.

PKRM.png

PKRG.pngPKRT.pngPKRD.pngPKRP.png

Link to comment
Share on other sites

@CJ: Not unless MadJik decides to convert this into a "normal" plugin, as CodeLab does not give you anywhere near enough control over the interface to do that.

xZYt6wl.png

ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Link to comment
Share on other sites

wellllll it wouldn't be hard to add an option to override the CreateConfigDialog() function....

EDIT: and technically it is your fault, as you're the one who added UI creation to CodeLab in the first place...

xZYt6wl.png

ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Link to comment
Share on other sites

Don't make him angry! You won't like him when he's angry... :evil:

I am not a mechanism, I am part of the resistance;

I am an organism, an animal, a creature, I am a beast.

~ Becoming the Archetype

Link to comment
Share on other sites

Really? I actually like most people better when they're angry... Maybe it's the lovely shade of red their faces turn.

  • Haha 1

xZYt6wl.png

ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Link to comment
Share on other sites

Lol Pyro. Offtopic; where can I get the font in your avatar? I don't want to copy it as most have done, just use it for some other stuff

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...