Sign in to follow this  
TechnoRobbo

Noise Bleacher

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

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.

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.

Sign in to follow this