Sign in to follow this  

Majority Color Effect (ymd:100726)

Recommended Posts

Majority Color Effect Plugin

What's this?


This plugin is added to the menu Effects, submenu Stylize.

In fact it was originally 99% made with CodeLab...(1% for external text editor, and for the icon).

This is based on the (french) cellular automat using the majority rule.

See the link for more...

The automate is based on boolean (0 or 1) cells. I had to adapt it for colors (0-255).

The principle is each cell will take the value of its neighbours that have the majority.

For each cell, I compute the average of the cell + its neighbours.

If the cell color is greater than the average then it takes the value of the greatest value found. Else it take the value of the lowest value found.


So there are 3 modes:

Keep original colors: use min/max values found separately for R,G & B.

Reduce to primal colors: use 0/255 separately for R,G & B.

Reduce to black and white: use min/max values found and take the average of RGB to have a grey color.


Download it!

Plugin Majority.dll

ar.pngHere is the DLLal.png


The MadJik's All plugins package is available !



How to install



Classic version of

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


Microsoft Store version of

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

You have to adapt for your language My Documents



The User interface


...Choose the color mode: see previous explanations.

...Radius of tolerance: how many row/column to compute from the single pixel. Big values could take a long time to render.

...Color tolerance level: color level to define the default average between low or high colors.

...Include transparent pixels:Check to apply the effect on alpha channel as well.



Some examples:

1. Original model from

...and abstract Nebulous (from Codelab)

model1.jpg  modelb1.jpg

2. mode=0, radius=4, tolerance=127 (applied on the model)

model2.jpg  modelb2.jpg

3. mode=1, radius=4, tolerance=127 (applied on the model)

model3.jpg  modelb3.jpg

4. mode=2, radius=4, tolerance=127 (applied on the model)

model4.jpg  modelb4.jpg

5. mode=1, radius=1, tolerance=127 (applied on the model)

+ (run again) mode=2, radius=1, tolerance=127

model5.jpg  modelb5.jpg

Share this post

Link to post
Share on other sites

Hey, this is actually pretty cool. It might produce a good result if afterwards using the Oil Painting effect.

Share this post

Link to post
Share on other sites
Max tolerance gives a frosted glass effect. Really fun effect. :lol:

Yes, I was just uploading images...

6. mode=0, radius=3, tolerance=0 on left 255 on right


Model to compare (look at the eyes!)


Share this post

Link to post
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.

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.

Sign in to follow this