Sign in to follow this  
MadJik

Bars plugin (ymd:100725)

Recommended Posts

Bars Effect Plugin

 

What's this?

This plugin will generate two colored bars from a border of the image with a random length.

The ratios are here to reduce/increase the maximum length/width of the bars.

 

Download it!

Plugin Bars.dll

ar.pngHere is the DLLal.png

 

The MadJik's All plugins package is available !
http://forums.getpaint.net/index.php?showtopic=7186

 

The User interface

This is a plugin under Effect/Render.

Bars_UI.png

Choose the edge to start from:

Select the border top, bottom, left or right.

Widthness of the bars:

Select the brush width used to draw the lines.

Length of the Primary color bar in% :

Choose the maximum length in %. A random value is determinated in this range.

Length of the Secondary color bar in% :

Choose the maximum length in %. A random value is determinated in this range.

The secondary color bar is drawn after the first bar.

So the maximum length in % could be the sum of these two values.

Transparency:

Choose the transparency amount.

Fit the length to the size of the image:

The secondary bar is drawn from the first bar to the opposite edge. The whole image is filled with bars.

Invert primary/secondary colors:

Only switch the colors, not the ratios.

Reseed:

Click this button to recalculate the bars.

 

 

Some examples:

For this examples, I have created a green 300x300 image, Red as PrimColor, Blue as 2ndColor.

1. Bars:

bars_h_1.png

...Edge=Left

...Widht=1

...Primary=50%

...Secondary=50%

 

2. Explosion:

bars_h_2.png

...Edge=Bottom

...Widht=1

...Primary=50%

...Secondary=50%

...Rect to Polar conversion.

 

3. Splats:

bars_h_3.png

...Do an explosion (see previous example).

...Run the Majority Effect: Mode=1, Radius=10, Tolerance=175.

 

4. Hair (work better in image width is 2 times the height):

...Edge=Left

...Widht=1

...Primary=25%

...Secondary=25%

...Polar inversion.

...Rotate the image Clockwise (Ctrl+H).

...Cut out / Tint / Etc...

hear1.png

 

hear2.png

Original image from the web:

http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/medias/nmedia/18/60/11/71/18748697.jpg

 

5. Star

...Combine Explosion and Kaleidoscope:

bars_4.png

Voilà !

Edited by MadJik
refresh UI and rehosted images

Share this post


Link to post
Share on other sites
4. Hear (work better in image width is 2 times the height):

...Bars_H:Ratio=50.

...Polar inversion.

...Rotate the image Clockwise (Ctrl+H).

...Cut out / Tint / Etc...

removed

removed

I think you mean "Hair".

Great plugin!

Share this post


Link to post
Share on other sites
4. Hear (work better in image width is 2 times the height):

...Bars_H:Ratio=50.

...Polar inversion.

...Rotate the image Clockwise (Ctrl+H).

...Cut out / Tint / Etc...

removed

removed

I think you mean "Hair".

Great plugin!

Share this post


Link to post
Share on other sites

I think you mean "Hair".

:oops: I saw that this word sounded strange to me... :wink:

Great plugin!

Thank you...

Share this post


Link to post
Share on other sites

I think you mean "Hair".

:oops: I saw that this word sounded strange to me... :wink:

Great plugin!

Thank you...

Share this post


Link to post
Share on other sites

Nice, Don't know what to do with it at the moment :)

Buildings??

cb216222.jpg

Share this post


Link to post
Share on other sites

Nice, Don't know what to do with it at the moment :)

Buildings??

cb216222.jpg

Share this post


Link to post
Share on other sites

I had a crash with this when doing it inside elliptical selection.

This text file was created because Paint.NET crashed.
Please e-mail this file to paint.net@hotmail.com so we can diagnose and fix the problem.

Application version: Paint.NET v3.08 (Beta Release build 3.08.2705.22653)
Time of crash: 31.5.2007 23:33:55
Application uptime: 00:00:25.0156250
OS Version: 5.1.2600.131072 Service Pack 2 Workstation x86
.NET Framework version: 2.0.50727.42 x86
Processor: 2x "Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz" @ ~2187MHz
Physical memory: 1023 MB
Tablet PC: no
Locale: pdnr.c: fi-FI, hklm: fi-FI, hkcu: n/a, cc: fi-FI, cuic: fi-FI

Exception details:
PaintDotNet.WorkerThreadException: Worker thread threw an exception ---> System.ArgumentOutOfRangeException: Arvon maxValue on oltava suurempi kuin nolla.
Parametrin nimi: maxValue
  kohteessa System.Random.Next(Int32 maxValue)
  kohteessa PaintDotNet.Effects.UserScript.Render(Surface dst, Surface src, Rectangle rect)
  kohteessa PaintDotNet.Effects.UserScript.Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, Int32 startIndex, Int32 length)
  kohteessa PaintDotNet.Effects.BackgroundEffectRenderer.ThreadFunction()
  --- Sisäisen poikkeuksen pinon jäljityksen loppu ---
  kohteessa PaintDotNet.Effects.BackgroundEffectRenderer.Join()
  kohteessa PaintDotNet.Effects.BackgroundEffectRenderer.Start()
  kohteessa PaintDotNet.Menus.EffectMenuBase.EffectConfigTokenChangedHandler(Object sender, EventArgs e)
  kohteessa PaintDotNet.Effects.EffectConfigDialog.OnEffectTokenChanged()
  kohteessa PaintDotNet.Effects.AmountEffectConfigDialogBase.amountTrackBar_ValueChanged(Object sender, EventArgs e)
  kohteessa System.Windows.Forms.TrackBar.OnValueChanged(EventArgs e)
  kohteessa System.Windows.Forms.TrackBar.WndProc(Message& m)
  kohteessa System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  kohteessa System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  kohteessa System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
------------------------------------------------------------------------------

EDIT: ehh? Half of the crash log is in finnish.

Share this post


Link to post
Share on other sites

I had a crash with this when doing it inside elliptical selection.

This text file was created because Paint.NET crashed.
Please e-mail this file to paint.net@hotmail.com so we can diagnose and fix the problem.

Application version: Paint.NET v3.08 (Beta Release build 3.08.2705.22653)
Time of crash: 31.5.2007 23:33:55
Application uptime: 00:00:25.0156250
OS Version: 5.1.2600.131072 Service Pack 2 Workstation x86
.NET Framework version: 2.0.50727.42 x86
Processor: 2x "Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz" @ ~2187MHz
Physical memory: 1023 MB
Tablet PC: no
Locale: pdnr.c: fi-FI, hklm: fi-FI, hkcu: n/a, cc: fi-FI, cuic: fi-FI

Exception details:
PaintDotNet.WorkerThreadException: Worker thread threw an exception ---> System.ArgumentOutOfRangeException: Arvon maxValue on oltava suurempi kuin nolla.
Parametrin nimi: maxValue
  kohteessa System.Random.Next(Int32 maxValue)
  kohteessa PaintDotNet.Effects.UserScript.Render(Surface dst, Surface src, Rectangle rect)
  kohteessa PaintDotNet.Effects.UserScript.Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, Int32 startIndex, Int32 length)
  kohteessa PaintDotNet.Effects.BackgroundEffectRenderer.ThreadFunction()
  --- Sisäisen poikkeuksen pinon jäljityksen loppu ---
  kohteessa PaintDotNet.Effects.BackgroundEffectRenderer.Join()
  kohteessa PaintDotNet.Effects.BackgroundEffectRenderer.Start()
  kohteessa PaintDotNet.Menus.EffectMenuBase.EffectConfigTokenChangedHandler(Object sender, EventArgs e)
  kohteessa PaintDotNet.Effects.EffectConfigDialog.OnEffectTokenChanged()
  kohteessa PaintDotNet.Effects.AmountEffectConfigDialogBase.amountTrackBar_ValueChanged(Object sender, EventArgs e)
  kohteessa System.Windows.Forms.TrackBar.OnValueChanged(EventArgs e)
  kohteessa System.Windows.Forms.TrackBar.WndProc(Message& m)
  kohteessa System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  kohteessa System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  kohteessa System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
------------------------------------------------------------------------------

EDIT: ehh? Half of the crash log is in finnish.

Share this post


Link to post
Share on other sites

English...

This text file was created because Paint.NET crashed.
Please e-mail this file to paint.net@hotmail.com so we can diagnose and fix the problem.

Application version: Paint.NET v3.07 (Final Release build 3.07.2683.42092)
Time of crash: 05/31/07 4:40:09 PM
Application uptime: 00:00:08.3905176
OS Version: 5.1.2600.131072 Service Pack 2 Workstation x86
.NET Framework version: 2.0.50727.42 x86
Processor: 1x "Intel(R) Pentium(R) 4 CPU 2.66GHz" @ ~2660MHz
Physical memory: 511 MB
Tablet PC: no
Locale: pdnr.c: en-US, hklm: n/a, hkcu: en-US, cc: en-US, cuic: en-US

Exception details:
PaintDotNet.WorkerThreadException: Worker thread threw an exception ---> System.ArgumentOutOfRangeException: 'maxValue' must be greater than zero.
Parameter name: maxValue
  at System.Random.Next(Int32 maxValue)
  at PaintDotNet.Effects.UserScript.Render(Surface dst, Surface src, Rectangle rect)
  at PaintDotNet.Effects.UserScript.Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, Int32 startIndex, Int32 length)
  at PaintDotNet.Effects.BackgroundEffectRenderer.ThreadFunction()
  --- End of inner exception stack trace ---
  at PaintDotNet.Effects.BackgroundEffectRenderer.Join()
  at PaintDotNet.Effects.BackgroundEffectRenderer.Start()
  at PaintDotNet.Menus.EffectMenuBase.EffectConfigTokenChangedHandler(Object sender, EventArgs e)
  at PaintDotNet.Effects.EffectConfigDialog.OnEffectTokenChanged()
  at PaintDotNet.Effects.AmountEffectConfigDialogBase.amountTrackBar_ValueChanged(Object sender, EventArgs e)
  at System.Windows.Forms.TrackBar.OnValueChanged(EventArgs e)
  at System.Windows.Forms.TrackBar.WndProc(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
------------------------------------------------------------------------------

Share this post


Link to post
Share on other sites

English...

This text file was created because Paint.NET crashed.
Please e-mail this file to paint.net@hotmail.com so we can diagnose and fix the problem.

Application version: Paint.NET v3.07 (Final Release build 3.07.2683.42092)
Time of crash: 05/31/07 4:40:09 PM
Application uptime: 00:00:08.3905176
OS Version: 5.1.2600.131072 Service Pack 2 Workstation x86
.NET Framework version: 2.0.50727.42 x86
Processor: 1x "Intel(R) Pentium(R) 4 CPU 2.66GHz" @ ~2660MHz
Physical memory: 511 MB
Tablet PC: no
Locale: pdnr.c: en-US, hklm: n/a, hkcu: en-US, cc: en-US, cuic: en-US

Exception details:
PaintDotNet.WorkerThreadException: Worker thread threw an exception ---> System.ArgumentOutOfRangeException: 'maxValue' must be greater than zero.
Parameter name: maxValue
  at System.Random.Next(Int32 maxValue)
  at PaintDotNet.Effects.UserScript.Render(Surface dst, Surface src, Rectangle rect)
  at PaintDotNet.Effects.UserScript.Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, Int32 startIndex, Int32 length)
  at PaintDotNet.Effects.BackgroundEffectRenderer.ThreadFunction()
  --- End of inner exception stack trace ---
  at PaintDotNet.Effects.BackgroundEffectRenderer.Join()
  at PaintDotNet.Effects.BackgroundEffectRenderer.Start()
  at PaintDotNet.Menus.EffectMenuBase.EffectConfigTokenChangedHandler(Object sender, EventArgs e)
  at PaintDotNet.Effects.EffectConfigDialog.OnEffectTokenChanged()
  at PaintDotNet.Effects.AmountEffectConfigDialogBase.amountTrackBar_ValueChanged(Object sender, EventArgs e)
  at System.Windows.Forms.TrackBar.OnValueChanged(EventArgs e)
  at System.Windows.Forms.TrackBar.WndProc(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
------------------------------------------------------------------------------

Share this post


Link to post
Share on other sites

Good job MadJik! I'm sure I can use this sooner or later. I'll probally end up putting hair on all the pics of me that I got on my PC... the upper side of my head is a Bruce Willis look alike. :P

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