Jump to content
How to Install Plugins ×

Noise Bleacher


TechnoRobbo

Recommended Posts

Pseudo Greyscale from Pseudo-Random Noise. The plugin takes your color image and de-saturates it by shifting the pixel colors randomly. I included a Span and Offset control to adjust the hue and intensity of the de-saturation,

 

Sorry no video instructions - this ones too easy to use.

 

Under the Effects->Color->Noise Bleacher

 

Bug Fix Version 1,1 Span Zero crash fixed. 1:27 AM Tuesday, June 11, 2013 (UTC)

 

 

Bleacher.png?raw=1

 

Interesting when zoomed:

zoombleach.png?raw=1

 

 

The Code:

 

Hidden Content:
// Submenu: Color
// Name: Noise Bleacher
// Title: Noise Bleacher - v1.1
// Author: TechnoRobbo
// URL: http://www.technorobbo
#region UICode
int Amount1 = 1; // [1,360] Span
int Amount2 = 0; // [0,180] Offset
#endregion






void Render(Surface dst, Surface src, Rectangle rect)
{
    Random rndm = new Random((int)Guid.NewGuid().GetHashCode());
    ColorBgra CP;
    int tmp =0;
    for (int y = rect.Top; y < rect.Bottom; y++)
    {
        for (int x = rect.Left; x < rect.Right; x++)
        {
            CP = src[x,y];
            tmp= rndm.Next() % Amount1;
            HsvColor hsv = HsvColor.FromColor(CP.ToColor());
            int H = (hsv.Hue + tmp + Amount2) % 360; 
            int S = hsv.Saturation; 
            int V = hsv.Value;


            hsv = new HsvColor(H,S,V);


            ColorBgra NP = ColorBgra.FromColor(hsv.ToColor());
            NP.A = CP.A;  


            dst[x,y] = NP;
        }
    }


}
 
 

NoiseBleach.zip

Edited by TechnoRobbo

Go out there and be amazing. Have Fun, TR
TRsSig.png?raw=1
Some Pretty Pictures Some Cool Plugins

Link to comment
Share on other sites

Please change the menu to Effects > Color (no S).

 

Edit: Span = 0 crashes :(

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...